QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#357460 | #1. I/O Test | xucheng | 100 | 570ms | 3652kb | C++14 | 1.5kb | 2024-03-18 21:27:58 | 2024-03-18 21:27:59 |
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 << "10000000 ";
}
}
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: 570ms
memory: 3652kb
input:
10000000 921713019 994467038 314363996 989421642 630168752 621497095 103546448 316582267 986164243 993370211 835787214 281103768 680025665 476151127 876278802 106388060 127924077 902620409 209157224 952123389 160544664 430428007 233938952 559367495 731140234 446748878 489334218 503791770 391402164 1...
output:
5499292018933749
result:
points 1.0 input test passed
Subtask #2:
score: 0
Wrong Answer
Test #2:
score: 0
Wrong Answer
time: 145ms
memory: 3604kb
input:
10000000
output:
10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 100...
result:
wrong answer Integer 10000000 violates the range [10^8, 999999999]