QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#754325 | #1. I/O Test | heavenaef | 100 | 274ms | 3640kb | C++23 | 916b | 2024-11-16 14:46:02 | 2024-11-16 14:46:03 |
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("11111111"); while(--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: 274ms
memory: 3636kb
input:
10000000 408388844 828641763 588759025 990782515 438279964 610969671 515060154 143378748 165633560 171849492 188298687 813833333 317055534 159422636 852361923 220978245 594178304 837349915 651119826 525747780 502455160 417988805 721198625 214815776 980168077 305952708 471206894 827259794 741412673 9...
output:
5500412841066798
result:
points 1.0 input test passed
Subtask #2:
score: 0
Wrong Answer
Test #2:
score: 0
Wrong Answer
time: 120ms
memory: 3640kb
input:
10000000
output:
11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 111...
result:
wrong answer Integer 11111111 violates the range [10^8, 999999999]