QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#357462 | #1. I/O Test | xucheng | 200 ✓ | 551ms | 3612kb | C++14 | 1.5kb | 2024-03-18 21:29:16 | 2024-03-18 21:29:18 |
Judging History
config.txt
10000000 10000000
input_test
/*
* @Author: xucheng
* @Date: 2024-03-18 21:23
*/
#include <iostream>
#include <cstring>
#include <algorithm>
#include <queue>
#include <vector>
#include <map>
#include <stack>
#include <set>
#include <cmath>
#define int long long
#define inf 0x3f3f3f3f3f3f3f3f
#define debug(x) cout << "debug: " << #x << " = " << x << "\n";
using namespace std;
using PII = pair<int, int>;
void solve()
{
int n, x;
cin >> n;
int sum = 0;
for (int i = 0; i < n; i ++ ) {
cin >> x;
sum += x;
}
cout << sum << "\n";
}
signed main()
{
std :: ios :: sync_with_stdio(false);
std :: cin.tie(nullptr), std :: cout.tie(nullptr);
int t;
t = 1;
// cin >> t;
while( t -- )
{
solve();
}
return 0;
}
output_test
/*
* @Author: xucheng
* @Date: 2024-03-18 21:23
*/
#include <iostream>
#include <cstring>
#include <algorithm>
#include <queue>
#include <vector>
#include <map>
#include <stack>
#include <set>
#include <cmath>
#define int long long
#define inf 0x3f3f3f3f3f3f3f3f
#define debug(x) cout << "debug: " << #x << " = " << x << "\n";
using namespace std;
using PII = pair<int, int>;
void solve()
{
int n;
cin >> n;
for (int i = 0; i < n; i ++ ) {
cout << "100000000 ";
}
}
signed main()
{
std :: ios :: sync_with_stdio(false);
std :: cin.tie(nullptr), std :: cout.tie(nullptr);
int t;
t = 1;
// cin >> t;
while( t -- )
{
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: 551ms
memory: 3612kb
input:
10000000 706811358 826132306 910743011 744396087 135093132 916002767 586507467 555558693 356920526 228949469 968001783 909861137 117180192 182220523 629710831 128524443 715367395 348823744 541805956 794619653 943520539 132161041 306878015 337241768 318761784 194014923 976699041 230360314 484873301 5...
output:
5499747322654420
result:
points 1.0 input test passed
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 135ms
memory: 3604kb
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