QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#81924 | #1. I/O Test | q | 200 ✓ | 432ms | 3236kb | C++23 | 1.0kb | 2023-02-26 18:17:44 | 2023-02-26 18:17:45 |
Judging History
config.txt
10000000 10000000
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(1e8),putchar(' ');
}
return 0;
}
详细
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 432ms
memory: 3236kb
input:
10000000 316772690 988612953 422529812 202615062 606409704 470941106 744191016 524092226 381876093 174384197 149175001 982401057 483066227 528994702 457349455 188677937 853554255 954076899 904801778 607592346 905712981 493247750 239693306 612205345 795375891 654462707 966937814 775850154 852504407 7...
output:
5499880175357506
result:
points 1.0 input test passed
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 349ms
memory: 3236kb
input:
10000000
output:
100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 ...
result:
points 1.0 output test passed