QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#772647#1. I/O Testliuzhenhao09100 91ms4752kbC++14600b2024-11-22 21:01:362024-11-22 21:01:36

Judging History

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

  • [2024-11-22 21:01:36]
  • 评测
  • 测评结果:100
  • 用时:91ms
  • 内存:4752kb
  • [2024-11-22 21:01:36]
  • 提交

config.txt

10000000 0

input_test

#include<bits/stdc++.h>
#define int long long
using namespace std; 
const int INF = 1e16 + 7;
char buf[1<<21],*p1,*p2;
#define gc() (p1 == p2 && (p2 = (p1 = buf) + fread(buf,1,1<<20,stdin),p1 == p2) ? 0 : *p1++)
template <typename T>
inline void read(T& x){
	int f = 1;
	x = 0;
	char ch = gc();
	while(!isdigit(ch)){
		if(ch == '-') f = -1;
		ch = gc();
	}
	while(isdigit(ch)){
		x = (x << 1) + (x << 3) + (ch ^ 48);
		ch = gc();
	}
	x *= f;
}
int n,x,s = 0;
signed main(){
	read(n);
	for(int i = 1; i <= n; i++) read(x),s += x;
	printf("%lld",s);
    return 0;
}

output_test


Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 91ms
memory: 4752kb

input:

10000000
595936100 433047376 494491138 119647254 402982213 803948088 963292829 868256280 354077462 522067438 120390886 458921737 281747416 245833673 590821899 317367663 728951717 581198738 886743826 417691462 158153054 535056520 480382809 539556320 656861776 431429979 689445989 319387453 377336625 4...

output:

5501088372355159

result:

points 1.0 input test passed

Subtask #2:

score: 0
Skipped