QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#310724 | #1. I/O Test | yz_ly | 200 ✓ | 226ms | 3596kb | C++14 | 1.0kb | 2024-01-21 17:13:32 | 2024-01-21 17:13:34 |
Judging History
config.txt
10000000 10000000
input_test
#include<bits/stdc++.h>
#define ll long long
using namespace std;
inline int read(){
char ch=getchar();
int f=1,x=0;
while(ch<'0'||ch>'9'){
if(ch=='-')
f=-f;
ch=getchar();
}
while(ch>='0'&&ch<='9'){
x=x*10+ch-'0';
ch=getchar();
}
return x*f;
}
inline void work(ll k){
if(k<0){
putchar('-');
k=-k;
}
if(k>9)
work(k/10);
putchar(k%10+'0');
}
int n;
int main(){
n=read();
ll sum=0;
for(int i=1;i<=n;i++){
sum+=read();
}
work(sum);
return 0;
}
output_test
#include<bits/stdc++.h>
using namespace std;
inline int read(){
char ch=getchar();
int f=1,x=0;
while(ch<'0'||ch>'9'){
if(ch=='-')
f=-f;
ch=getchar();
}
while(ch>='0'&&ch<='9'){
x=x*10+ch-'0';
ch=getchar();
}
return x*f;
}
inline void work(int k){
if(k<0){
putchar('-');
k=-k;
}
if(k>9)
work(k/10);
putchar(k%10+'0');
}
int n;
int main(){
n=read();
long long sum=0;
for(int i=1;i<=n;i++){
work(1e9-1);
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: 219ms
memory: 3596kb
input:
10000000 911234272 109445145 753759241 620509777 815278027 737143009 708428977 793605893 348623701 372894445 742768949 673165127 197186797 586766807 228579463 370387361 387190795 409309622 684313008 111176473 975275854 279350816 751191380 965314522 522684483 371562427 783868848 406951369 728917077 6...
output:
5499541371830879
result:
points 1.0 input test passed
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 226ms
memory: 3488kb
input:
10000000
output:
999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 999999999 ...
result:
points 1.0 output test passed