QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#63233 | #1. I/O Test | JKPJKP | 100 | 913ms | 3336kb | C++14 | 2.9kb | 2022-11-21 04:08:38 | 2022-11-21 04:08:40 |
Judging History
config.txt
1000000 10000000
input_test
#include "bits/stdc++.h"
using namespace std;
typedef int64_t ll;
typedef uint64_t ul;
typedef double ld;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef pair<ld, ld> pdd;
typedef vector<int> vi;
#define fi first
#define se second
#define pb push_back
#define do(i, j, k) for (int i = (j); i <= (k); i ++)
#define dec(i, j, k) for (int i = (j); i >= (k); i --)
#define open(i, j, k) for (int i = (j); i < (k); i ++)
#define mfil(a, x) memset(a, x, sizeof(a))
#define mcpy(a, b) memcpy(a, b, sizeof(a))
#define fio(x) freopen(x".in", "r", stdin); freopen(x".out", "w", stdout);
template<class T>
inline bool chkmin(T &x, T y) { return y < x ? (x=y, true) : false; }
template<class T>
inline bool chkmax(T &x, T y) { return y > x ? (x=y, true) : false; }
#define multi void init(); void work();\
int main() { int T; cin >> T; while (T --) { init(); work(); } }
struct __init__ {
__init__() {
srand(time(0) ^ ul(new char));
// cin.tie(0); cout.precision(16);
}
} static _init_;
inline int _() {
int ret = 0; char ch = getchar();
while (ch < '0' || ch > '9') ch = getchar();
while ('0' <= ch && ch <= '9') {
ret = 10 * ret + ch - '0';
ch = getchar();
}
return ret;
}
/* default code ends here */
const int maxn = 200100;
int n;
int main() {
n = _();
ll sum = 0;
while (n --) {
sum += _()
}
cout << sum << '\n';
return 0;
}
output_test
#include "bits/stdc++.h"
using namespace std;
typedef int64_t ll;
typedef uint64_t ul;
typedef double ld;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef pair<ld, ld> pdd;
typedef vector<int> vi;
#define fi first
#define se second
#define pb push_back
#define do(i, j, k) for (int i = (j); i <= (k); i ++)
#define dec(i, j, k) for (int i = (j); i >= (k); i --)
#define open(i, j, k) for (int i = (j); i < (k); i ++)
#define mfil(a, x) memset(a, x, sizeof(a))
#define mcpy(a, b) memcpy(a, b, sizeof(a))
#define fio(x) freopen(x".in", "r", stdin); freopen(x".out", "w", stdout);
template<class T>
inline bool chkmin(T &x, T y) { return y < x ? (x=y, true) : false; }
template<class T>
inline bool chkmax(T &x, T y) { return y > x ? (x=y, true) : false; }
#define multi void init(); void work();\
int main() { int T; cin >> T; while (T --) { init(); work(); } }
struct __init__ {
__init__() {
srand(time(0) ^ ul(new char));
cin.tie(0); cout.precision(16);
}
} static _init_;
/* default code ends here */
const int maxn = 200100;
int n;
int main() {
cin >> n;
while (n --) {
cout << n + 100000000 << ' ';
}
cout << '\n';
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 0
input_test Judgement Failed
Test #1:
score: 0
input_test Judgement Failed
input:
1000000 360529702 727441171 655222108 699718513 849706154 938895917 690584663 786783514 129423948 648227116 986331855 616971158 608106308 823812782 789331124 708826345 198319838 320371948 679603215 221266925 235722724 949391348 100942278 779761691 568525113 562381748 322620039 461864035 885286480 80...
output:
result:
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 913ms
memory: 3336kb
input:
10000000
output:
109999999 109999998 109999997 109999996 109999995 109999994 109999993 109999992 109999991 109999990 109999989 109999988 109999987 109999986 109999985 109999984 109999983 109999982 109999981 109999980 109999979 109999978 109999977 109999976 109999975 109999974 109999973 109999972 109999971 109999970 ...
result:
points 1.0 output test passed