QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#754329#1. I/O Testheavenaef200 ✓259ms3644kbC++23917b2024-11-16 14:46:572024-11-16 14:46:58

Judging History

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

  • [2024-11-16 14:46:58]
  • 评测
  • 测评结果:200
  • 用时:259ms
  • 内存:3644kb
  • [2024-11-16 14:46:57]
  • 提交

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

Details

Tip: Click on the bar to expand more detailed information

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