QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#61952 | #1. I/O Test | gdf_yhm | 200 ✓ | 368ms | 4320kb | C++14 | 771b | 2022-11-16 08:11:47 | 2022-11-16 08:11:49 |
Judging History
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