QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#357456 | #1. I/O Test | xucheng | 100 | 580ms | 3684kb | C++14 | 1.5kb | 2024-03-18 21:26:08 | 2024-03-18 21:26:11 |
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 << "99999999 ";
}
}
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: 580ms
memory: 3684kb
input:
10000000 737320073 402363917 795389334 365867161 306349821 408476424 135871735 104618977 898078882 903414617 369575840 446100384 494203523 297383584 760953103 296502178 375050529 531498103 161056328 717034382 974131716 898619573 927369107 738644889 182296838 967966107 394302568 912211081 694499269 4...
output:
5499945558928135
result:
points 1.0 input test passed
Subtask #2:
score: 0
Wrong Answer
Test #2:
score: 0
Wrong Answer
time: 117ms
memory: 3568kb
input:
10000000
output:
99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 999...
result:
wrong answer Integer 99999999 violates the range [10^8, 999999999]