QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#81913 | #1. I/O Test | q | 0 | 2ms | 3412kb | C++23 | 975b | 2023-02-26 18:11:41 | 2023-02-26 18:11:43 |
Judging History
config.txt
10 10
input_test
#include<bits/stdc++.h>
using namespace std;
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;
int 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;
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;
int 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
Wrong Answer
Test #1:
score: 0
Wrong Answer
time: 2ms
memory: 3412kb
input:
10 923840235 547362689 509016102 940780372 642078056 625720564 273554914 436193593 633650584 641281872
output:
1878511685
result:
wrong answer expected 6173478981, found 1878511685
Subtask #2:
score: 0
Wrong Answer
Test #2:
score: 0
Wrong Answer
time: 2ms
memory: 3176kb
input:
10
output:
1 2 3 4 5 6 7 8 9 10
result:
wrong answer Integer 1 violates the range [10^8, 999999999]