QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#140417 | #1. I/O Test | xhgua | Compile Error | / | / | C++14 | 2.9kb | 2023-08-15 21:20:34 | 2023-08-15 21:20:38 |
Judging History
config.txt
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;
cin >> 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
Invalid Configuration File: failed to read Nin and Nout