QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#61952#1. I/O Testgdf_yhm200 ✓368ms4320kbC++14771b2022-11-16 08:11:472022-11-16 08:11:49

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2022-11-16 08:11:49]
  • 评测
  • 测评结果:200
  • 用时:368ms
  • 内存:4320kb
  • [2022-11-16 08:11:47]
  • 提交

config.txt

10000000 10000000

input_test

#include<bits/stdc++.h>
#define int long long
using namespace std;
static char buf[1000000],*p1=buf,*p2=buf;
#define getchar() p1==p2&&(p2=(p1=buf)+fread(buf,1,1000000,stdin),p1==p2)?EOF:*p1++
inline int read(){
	int x=0,f=1;
	char ch=getchar();
	while(ch<'0' || ch>'9'){
		if(ch=='-')f=-1;
		ch=getchar();
	}
	while(ch>='0' && ch<='9'){
		x=(x<<3)+(x<<1)+(ch^48);
		ch=getchar();
	}
	return x*f;
}
void write(int x){
	if(x<0){
		putchar('-');
		x=-x;
	}
	if(x>9) write(x/10);
	putchar(x%10+'0');
}
signed main(){
	long long n,ans=0;
	n=read(); 
	for(int i=1;i<=n;i++)ans+=read();
	write(ans);
}

output_test

#include<bits/stdc++.h>
using namespace std;
int main(){
int n,a,ans=0;
cin>>n;
for(int i=1;i<=n;i++)cout<<"100000000 ";
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 88ms
memory: 4320kb

input:

10000000
522285104 967551304 736687736 738580819 605663878 929738099 759071567 250106270 623471024 708075627 177606945 492766888 886359740 972093722 276882238 738726730 840499058 777107937 400519443 291098590 355992388 351744485 521411170 395643991 944936696 942232891 669997500 624530366 158865961 4...

output:

5499628552708874

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 368ms
memory: 3344kb

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