QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#282807 | #1. I/O Test | KJJD | 200 ✓ | 505ms | 3572kb | C++20 | 956b | 2023-12-13 09:32:27 | 2023-12-13 09:32:27 |
Judging History
config.txt
10000000 10000000
input_test
#include <bits/stdc++.h>
using namespace std;
void solve()
{
int n;
cin >> n;
long long sum = 0;
for(int i=0;i < n;i++)
{
int x;
cin >> x;
sum += x;
}
cout << sum;
}
int main()
{
#ifdef LOCAL
freopen("data.in", "r", stdin);
freopen("data.out", "w", stdout);
#endif
ios::sync_with_stdio(false);
cin.tie(nullptr);
solve();
return 0;
}
output_test
#include <bits/stdc++.h>
using namespace std;
void solve()
{
int n;
cin >> n;
uniform_int_distribution<int> dis(100000000,1000000000 - 1);
mt19937_64 rd(chrono::steady_clock::now().time_since_epoch().count());
for(int i=0;i < n;i++)
cout << dis(rd) << ' ';
}
int main()
{
#ifdef LOCAL
freopen("data.in", "r", stdin);
freopen("data.out", "w", stdout);
#endif
ios::sync_with_stdio(false);
cin.tie(nullptr);
solve();
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 505ms
memory: 3564kb
input:
10000000 675487096 770961601 136748961 909344852 712605482 483157455 635766695 536335500 349313799 638245803 944281993 613370047 287538970 277427593 361593006 812137108 702055339 387904073 172706081 267557964 675138406 563304759 578422756 538217856 390400970 907437567 576926361 412109527 474068765 7...
output:
5500959744295825
result:
points 1.0 input test passed
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 448ms
memory: 3572kb
input:
10000000
output:
243046523 834906371 607714135 354393666 271213645 139446568 618086229 293661891 892443197 986436418 144779706 792122136 512735162 219449445 930072263 320986359 826960587 902228772 997210936 846765355 829576487 713934951 787360179 348890643 301753131 382527074 965603411 757244823 276160916 825615403 ...
result:
points 1.0 output test passed