QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#81919 | #1. I/O Test | q | 0.0001 | 2ms | 3232kb | C++23 | 1.0kb | 2023-02-26 18:15:30 | 2023-02-26 18:15:31 |
Judging History
config.txt
10 10
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;
}
詳細信息
Subtask #1:
score: 0.0001
Acceptable Answer
Test #1:
score: 0.0001
Acceptable Answer
time: 2ms
memory: 3232kb
input:
10 974524241 785052362 323472003 380835620 792641721 259199766 378179651 212433766 529139547 518882778
output:
5154361455
result:
points 0.0000010 input test passed
Subtask #2:
score: 0
Wrong Answer
Test #2:
score: 0
Wrong Answer
time: 1ms
memory: 3220kb
input:
10
output:
1 2 3 4 5 6 7 8 9 10
result:
wrong answer Integer 1 violates the range [10^8, 999999999]