QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#772635 | #1. I/O Test | liuzhenhao09 | 100 | 103ms | 4864kb | C++14 | 600b | 2024-11-22 20:56:26 | 2024-11-22 20:56:27 |
Judging History
config.txt
10000000 0
input_test
#include<bits/stdc++.h>
#define int long long
using namespace std;
const int INF = 1e16 + 7;
char buf[1<<21],*p1,*p2;
#define gc() (p1 == p2 && (p2 = (p1 = buf) + fread(buf,1,1<<20,stdin),p1 == p2) ? 0 : *p1++)
template <typename T>
inline void read(T& x){
x = 0;
int f = 1;
char ch = gc();
while(!isdigit(ch)){
if(ch == '-') f = -1;
ch = gc();
}
while(isdigit(ch)){
x = (x << 1) + (x << 3) + (ch ^ 48);
ch = gc();
}
x *= f;
}
int n,x,s = 0;
signed main(){
read(n);
for(int i = 1; i <= n; i++) read(x),s += x;
printf("%lld",s);
return 0;
}
output_test
詳細信息
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 103ms
memory: 4864kb
input:
10000000 372568920 989201618 530209147 506801797 773493379 557000866 825909231 246533215 954163915 793890792 878254430 101584240 452917834 346669193 995557242 433916941 747580555 338025953 405692578 687881594 911218808 734286754 172070189 721936903 288627545 888563934 824531541 831642951 243494185 6...
output:
5501525867846507
result:
points 1.0 input test passed
Subtask #2:
score: 0
Skipped