QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#140419 | #1. I/O Test | xhgua | 100 | 82ms | 4428kb | C++14 | 2.9kb | 2023-08-15 21:21:40 | 2023-08-15 21:21:43 |
Judging History
config.txt
10000000 10000000
input_test
#include <bits/stdc++.h>
#define i64 long long
#define all(x) x.begin(), x.end()
#define seg(a, l, r) a + l, a + r + 1
#define rep(i, a, b) for(int i = (a); i <= (b); i++)
#define per(i, a, b) for(int i = (a); i >= (b); i--)
using namespace std;
namespace FastIO {
char bufIn[1 << 20], bufOut[1 << 20], *p1, *p2, *pOut = bufOut;
inline char gc() { return (p1 == p2) && (p2 = (p1 = bufIn) + fread(bufIn, 1, 1 << 20, stdin)), p1 == p2 ? EOF : *p1++; }
template<typename T>
inline void read(T &x) {
x = 0; int f = 1; char ch = gc();
while(!isdigit(ch)) { if(ch == '-') f = -1; ch = gc(); }
while( isdigit(ch)) x = x * 10 + (ch - '0'), ch = gc();
x *= f;
}
inline void push(const char &c) {
if(pOut - bufOut == (1 << 20)) fwrite(bufOut, 1, 1 << 20, stdout), pOut = bufOut;
*pOut++ = c;
}
template<typename T>
inline void write(T x) {
if(x < 0) x = -x, push('-');
static T stk[40];
int tp = 0;
do {
stk[tp++] = x % 10;
x /= 10;
} while(x);
while(tp) push(stk[--tp] + '0');
}
template<typename T>
inline void writeln(T x) {
write(x); push('\n');
}
template<typename T>
inline void writesp(T x) {
write(x); push(' ');
}
void flush() {
fwrite(bufOut, 1, pOut - bufOut, stdout);
}
};
using namespace FastIO;
int n;
int main() {
read(n);
i64 sum = 0;
rep(i, 1, n) {
int x;
read(x);
sum += x;
}
writeln(sum);
return flush(), 0;
}
output_test
#include <bits/stdc++.h>
#define i64 long long
#define all(x) x.begin(), x.end()
#define seg(a, l, r) a + l, a + r + 1
#define rep(i, a, b) for(int i = (a); i <= (b); i++)
#define per(i, a, b) for(int i = (a); i >= (b); i--)
using namespace std;
namespace FastIO {
char bufIn[1 << 20], bufOut[1 << 20], *p1, *p2, *pOut = bufOut;
inline char gc() { return (p1 == p2) && (p2 = (p1 = bufIn) + fread(bufIn, 1, 1 << 20, stdin)), p1 == p2 ? EOF : *p1++; }
template<typename T>
inline void read(T &x) {
x = 0; int f = 1; char ch = gc();
while(!isdigit(ch)) { if(ch == '-') f = -1; ch = gc(); }
while( isdigit(ch)) x = x * 10 + (ch - '0'), ch = gc();
x *= f;
}
inline void push(const char &c) {
if(pOut - bufOut == (1 << 20)) fwrite(bufOut, 1, 1 << 20, stdout), pOut = bufOut;
*pOut++ = c;
}
template<typename T>
inline void write(T x) {
if(x < 0) x = -x, push('-');
static T stk[40];
int tp = 0;
do {
stk[tp++] = x % 10;
x /= 10;
} while(x);
while(tp) push(stk[--tp] + '0');
}
template<typename T>
inline void writeln(T x) {
write(x); push('\n');
}
template<typename T>
inline void writesp(T x) {
write(x); push(' ');
}
void flush() {
fwrite(bufOut, 1, pOut - bufOut, stdout);
}
};
using namespace FastIO;
int n;
int main() {
read(n);
rep(i, 1, n) writesp("114541919");
return flush(), 0;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 82ms
memory: 4428kb
input:
10000000 512456179 279356621 785568632 594836286 991569082 592191203 302009017 871364278 957088616 405616995 261317913 629945602 183391980 407523564 185811833 619038941 788694913 731203390 694587648 245678526 466108586 954740413 744649480 344012923 625871511 690816139 779642835 484539162 770001886 5...
output:
5499220429028051
result:
points 1.0 input test passed
Subtask #2:
score: 0
output_test Judgement Failed
Test #2:
score: 0
output_test Judgement Failed
input:
10000000