QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#81920 | #1. I/O Test | q | 0.001 | 2ms | 3260kb | C++23 | 1.0kb | 2023-02-26 18:15:54 | 2023-02-26 18:15:56 |
Judging History
config.txt
100 100
input_test
#include<bits/stdc++.h>
using namespace std;
#define int long long
int read(){
int x=0,f=1;
char ch=getchar();
for(;ch<'0'||ch>'9';){
if(ch=='-'){
f=-1;
}
ch=getchar();
}
for(;ch>='0'&&ch<='9';){
x=(x<<1)+(x<<3)+(ch^48);
ch=getchar();
}
return x*f;
}
void write(int x){
if(x<0){
putchar('-'),x=-x;
}
if(x>9){
write(x/10);
}
putchar(x%10+'0');
}
int n,ans;
signed main(){
n=read();
for(int i=1;i<=n;i++){
ans+=read();
}
write(ans);
return 0;
}
output_test
#include<bits/stdc++.h>
using namespace std;
#define int long long
int read(){
int x=0,f=1;
char ch=getchar();
for(;ch<'0'||ch>'9';){
if(ch=='-'){
f=-1;
}
ch=getchar();
}
for(;ch>='0'&&ch<='9';){
x=(x<<1)+(x<<3)+(ch^48);
ch=getchar();
}
return x*f;
}
void write(int x){
if(x<0){
putchar('-'),x=-x;
}
if(x>9){
write(x/10);
}
putchar(x%10+'0');
}
int n,ans;
signed main(){
n=read();
for(int i=1;i<=n;i++){
write(i),putchar(' ');
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 0.001
Acceptable Answer
Test #1:
score: 0.001
Acceptable Answer
time: 2ms
memory: 3200kb
input:
100 827690132 201168674 888667196 632647837 575262497 910887625 610573174 428106541 989592778 107858326 197106068 254006596 971598033 907063771 583967142 142388922 491994514 997932789 446227330 671872703 540354196 639614849 316523803 307953100 129373850 898714657 541244188 238541438 878193685 125026...
output:
58722608341
result:
points 0.000010 input test passed
Subtask #2:
score: 0
Wrong Answer
Test #2:
score: 0
Wrong Answer
time: 0ms
memory: 3260kb
input:
100
output:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
result:
wrong answer Integer 1 violates the range [10^8, 999999999]