QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#776713 | #1. I/O Test | dinnerWu | 200 ✓ | 605ms | 42948kb | C++14 | 555b | 2024-11-23 20:27:37 | 2024-11-23 20:27:37 |
Judging History
config.txt
10000000 10000000
input_test
#include<bits/stdc++.h>
#define N 10000010
using namespace std;
int n,a[N];
long long sum;
int main(){
scanf("%d",&n);
for(int i=1;i<=n;++i) { scanf("%d",&a[i]); sum+=a[i]; }
printf("%lld\n",sum);
return 0;
}
output_test
#include<bits/stdc++.h>
using namespace std;
int n;
mt19937 rd(chrono::steady_clock::now().time_since_epoch().count());
int getrd(int l,int r) { return rd()%(r-l+1)+l; }
int main(){
scanf("%d",&n);
for(int i=1;i<=n;++i) printf("%d ",getrd(100000000,999999999)); puts("");
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 605ms
memory: 42948kb
input:
10000000 290028295 415679846 668097963 432488944 491501548 841453887 311353036 331721818 614149189 924544708 120756249 760292928 259544413 921622384 762583235 502179910 909226544 487519053 574338560 527145637 536621417 196397584 478438703 757098576 778129649 436007147 672835310 605524252 373308423 1...
output:
5498896893805582
result:
points 1.0 input test passed
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 565ms
memory: 3936kb
input:
10000000
output:
239987998 995660752 116904402 418824322 561650139 926412738 790305411 419490252 684908534 288573975 504373638 217537930 438053989 774164342 516801745 173027747 520609855 484203366 828204617 386218074 615002578 304158710 788372808 741504860 412236417 568500753 649828017 690730533 805095980 315610032 ...
result:
points 1.0 output test passed