QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#878169 | #1. I/O Test | sc17 | 100 | 155ms | 3584kb | C++14 | 570b | 2025-02-01 13:51:05 | 2025-02-01 13:51:10 |
Judging History
config.txt
10000000 0
input_test
#include <bits/stdc++.h>
using namespace std;
#define gc getchar_unlocked
#define pc putchar_unlocked
int read() {
int a = 0; char c;
for (c = gc(); !isdigit(c); c = gc());
while (isdigit(c)) a = (a << 3) + (a << 1) + (c & 15), c = gc();
return a;
}
void read(int & a) {
a = read();
}
void put(long long x) {
static char b[39];
int i = 0; do b[i++] = x % 10 | 48; while (x /= 10);
do pc(b[--i]); while (i);
}
int n;
int main() {
ios::sync_with_stdio(false);
long long x = 0; read(n); while (n--) x += read();
put(x);
}
output_test
詳細信息
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 155ms
memory: 3584kb
input:
10000000 840582664 414629497 938633859 481974683 654148601 243576380 887019261 629598282 374420403 976693803 427683485 334821529 926359806 771469988 593588007 312706183 961739500 414915637 697634033 199647711 541719860 235336031 627586390 254020116 552640816 314415435 629284658 133649608 129754446 8...
output:
5500668268782923
result:
points 1.0 input test passed
Subtask #2:
score: 0
Skipped