QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#210698#1. I/O Testczc200 ✓215ms3480kbC++141.0kb2023-10-11 19:00:282023-10-11 19:00:32

Judging History

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

  • [2023-10-11 19:00:32]
  • 评测
  • 测评结果:200
  • 用时:215ms
  • 内存:3480kb
  • [2023-10-11 19:00:28]
  • 提交

config.txt

10000000 10000000

input_test

#include<bits/stdc++.h>
using namespace std;
#define int long long
inline void read(int &x){
	x=0;
	bool f=0;
	char c=getchar();
	while(c<'0' || c>'9'){
		if(c=='-') f=1;
		c=getchar();
	}
	while(c>='0' && c<='9'){
		x=(x<<1)+(x<<3)+(c^48);
		c=getchar();
	}
	if(f) x=-x;
} 
inline void write(int x){
	if(x<0) putchar('-');
	if(x>9) write(x/10);
	putchar(x%10+48);
}
signed main(){
	int ans=0;
	int n;
	read(n);
	for(int i=1,x;i<=n;i++){
		read(x);	
		ans+=x;
	}
	write(ans);
	return 0;
}

output_test

#include<bits/stdc++.h>
using namespace std;
#define int long long
inline void read(int &x){
	x=0;
	bool f=0;
	char c=getchar();
	while(c<'0' || c>'9'){
		if(c=='-') f=1;
		c=getchar();
	}
	while(c>='0' && c<='9'){
		x=(x<<1)+(x<<3)+(c^48);
		c=getchar();
	}
	if(f) x=-x;
} 
inline void write(int x){
	if(x<0) putchar('-');
	if(x>9) write(x/10);
	putchar(x%10+48);
}
signed main(){
	int n;
	read(n);
	for(int i=1;i<=n;i++){
		write(100000000),putchar(' ');
	}
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 215ms
memory: 3480kb

input:

10000000
439277140 412127049 728407017 349605958 347711611 760678808 411100235 921630398 428252077 703668409 423525961 606492442 571483992 340735558 606163112 422529023 745780089 489607018 292065722 452501884 522752126 540297096 240749402 412299392 912496470 234227403 411065146 724482040 595038414 6...

output:

5499678719493644

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 203ms
memory: 3288kb

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