QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#754325#1. I/O Testheavenaef100 274ms3640kbC++23916b2024-11-16 14:46:022024-11-16 14:46:03

Judging History

你现在查看的是最新测评结果

  • [2024-11-16 14:46:03]
  • 评测
  • 测评结果:100
  • 用时:274ms
  • 内存:3640kb
  • [2024-11-16 14:46:02]
  • 提交

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;
}

详细

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]