QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#53881 | #1. I/O Test | james1BadCreeper | 200 ✓ | 442ms | 1840kb | C++17 | 747b | 2022-10-06 10:02:18 | 2022-10-06 10:02:20 |
Judging History
config.txt
10000000 10000000
input_test
#include <cstdio>
#include <cctype>
int main(void)
{
int n, c, x;
long long ans = 0;
scanf("%d", &n);
while (n--)
{
c = getchar(); x = 0;
while (!isdigit(c)) c = getchar_unlocked();
while (isdigit(c)) x = (x << 3) + (x << 1) + (c ^ 48), c = getchar_unlocked();
ans += x;
}
printf("%lld\n", ans);
return 0;
}
output_test
#include <cstdio>
int main(void)
{
int n;
scanf("%d", &n);
while (n--)
{
putchar_unlocked('1');
putchar_unlocked('0');
putchar_unlocked('0');
putchar_unlocked('0');
putchar_unlocked('0');
putchar_unlocked('0');
putchar_unlocked('0');
putchar_unlocked('0');
putchar_unlocked('0');
putchar_unlocked(' ');
}
putchar_unlocked('\n');
return 0;
}
詳細信息
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 299ms
memory: 1808kb
input:
10000000 872862819 508137203 562537838 389501293 750492044 240104654 981287062 964880579 374023708 339133934 728856938 702179326 639066036 448654166 893750476 303767046 284013609 425743526 495645241 512857802 601198675 180906932 207378801 878734441 870582439 734323618 473296027 562869641 746599772 8...
output:
5499393319900919
result:
points 1.0 input test passed
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 442ms
memory: 1840kb
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