QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#754329 | #1. I/O Test | heavenaef | 200 ✓ | 259ms | 3644kb | C++23 | 917b | 2024-11-16 14:46:57 | 2024-11-16 14:46:58 |
Judging History
config.txt
10000000 10000000
input_test
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll read() {
char ch = ' '; ll res = 0; int f = 1;
do { if(ch == '-') f = -1; ch = getchar(); } while(!isdigit(ch));
do res = res * 10 + ch - '0', ch = getchar(); while(isdigit(ch));
return res * f;
}
void write(ll x) {
char chs[32]; int cnt = 0;
do chs[++cnt] = x % 10 + '0', x /= 10; while(x);
do putchar(chs[cnt]); while(--cnt);
}
ll n, sum = 0;
signed main() {
n = read();
do sum += read(); while(--n);
write(sum);
return 0;
}
output_test
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll read() {
char ch = ' '; ll res = 0; int f = 1;
do { if(ch == '-') f = -1; ch = getchar(); } while(!isdigit(ch));
do res = res * 10 + ch - '0', ch = getchar(); while(isdigit(ch));
return res * f;
}
ll n;
signed main() {
n = read();
do puts("111111111"); while(--n);
return 0;
}
詳細信息
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 259ms
memory: 3644kb
input:
10000000 214583295 378336102 853823942 857826877 679202384 182244147 643193435 299151243 787487853 666240567 584303154 652858595 820650887 276134874 244991143 787683062 816939700 605377753 247203443 281194064 910248801 301193387 720924458 860336769 136029403 515593041 759870350 169809612 250034404 6...
output:
5499507006915253
result:
points 1.0 input test passed
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 111ms
memory: 3632kb
input:
10000000
output:
111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 111111111 ...
result:
points 1.0 output test passed