QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#55448 | #1. I/O Test | james1BadCreeper | 200 ✓ | 402ms | 1776kb | C++20 | 579b | 2022-10-13 19:43:03 | 2022-10-13 19:43:06 |
Judging History
config.txt
10000000 10000000
input_test
#include <cstdio>
#pragma GCC optimize("Ofast")
inline void read(int &x)
{
int c = getchar(); x = 0;
while (c < '0' || c > '9') c = getchar();
while (c >= '0' && c <= '9') x = (x << 3) + (x << 1) + (c ^ 48), c = getchar();
}
int main(void)
{
int n;
read(n);
int x;
long long ans = 0;
while (n--)
{
read(x);
ans += x;
}
printf("%lld\n", ans);
return 0;
}
output_test
#include <cstdio>
#pragma GCC optimize("Ofast")
int main(void)
{
int n;
scanf("%d", &n);
while (n--)
printf("100000000 ");
putchar('\n');
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 402ms
memory: 1776kb
input:
10000000 660792800 163064363 658790210 993857957 844210000 510030742 663281015 825739200 833070948 450526570 473632457 201087972 152937759 197322275 810253532 701116537 446147009 237939615 967645829 492535266 669418297 878124926 723267551 798509094 777983798 229922524 363188510 109658336 273460354 5...
output:
5501527744895347
result:
points 1.0 input test passed
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 334ms
memory: 1772kb
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