QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#758602 | #1. I/O Test | baoyangawa | 200 ✓ | 252ms | 4764kb | C++14 | 3.0kb | 2024-11-17 19:00:24 | 2024-11-17 19:00:24 |
Judging History
config.txt
10000000 10000000
input_test
#include <bits/stdc++.h>
#define frr(a) freopen(a, "r", stdin)
#define fww(a) freopen(a, "w", stdout)
#define MP make_pair
#define fi first
#define se second
#define eb emplace_back
using namespace std;
using ll = long long;
const int inf = 0x3f3f3f3f, MB = 1 << 20;
const ll INF = 0x3f3f3f3f3f3f3f3f;
struct fio {
char ib[MB + 100], *p, *q;
fio() {
p = q = ib;
}
char gc() {
// return getchar();
if (p == q) {
q = (p = ib) + fread(ib, 1, MB, stdin);
if (p == q) return EOF;
}
return *p++;
}
template <typename T> void read(T& x) {
char c = gc(), l = 0;
x = 0;
while (!isdigit(c)) l = c, c = gc();
while ( isdigit(c)) x = (x << 1) + (x << 3) + c - 48, c = gc();
if (l == '-') x = -x;
}
bool bk(char c) {
return c == ' ' || c == '\r' || c == '\n' || c == '\t' || c == EOF;
}
void read(char& x) {
char c = gc();
while (bk(c)) c = gc();
x = c;
}
void read(string& x) {
char c = gc();
x.clear();
while ( bk(c)) c = gc();
while (!bk(c)) x += c, c = gc();
}
template <typename T1, typename T2> void read(pair <T1, T2> &x) {
read(x.fi), read(x.se);
}
template <typename T, typename ...Argc> void read(T& x, Argc&... argc) {
read(x), read(argc...);
}
template <typename T> void readt(T bg, T ed) {
for (T it = bg; it != ed; it++) {
read(*it);
}
}
} IO;
const int N = 123123;
ll n, a, res;
int main() {
IO.read(n);
while (n--) {
IO.read(a), res += a;
} printf("%lld\n", res);
return 0;
}
output_test
#include <bits/stdc++.h>
#define frr(a) freopen(a, "r", stdin)
#define fww(a) freopen(a, "w", stdout)
#define MP make_pair
#define fi first
#define se second
#define eb emplace_back
using namespace std;
using ll = long long;
const int inf = 0x3f3f3f3f, MB = 1 << 20;
const ll INF = 0x3f3f3f3f3f3f3f3f;
struct fio {
char ib[MB + 100], *p, *q;
fio() {
p = q = ib;
}
char gc() {
// return getchar();
if (p == q) {
q = (p = ib) + fread(ib, 1, MB, stdin);
if (p == q) return EOF;
}
return *p++;
}
template <typename T> void read(T& x) {
char c = gc(), l = 0;
x = 0;
while (!isdigit(c)) l = c, c = gc();
while ( isdigit(c)) x = (x << 1) + (x << 3) + c - 48, c = gc();
if (l == '-') x = -x;
}
bool bk(char c) {
return c == ' ' || c == '\r' || c == '\n' || c == '\t' || c == EOF;
}
void read(char& x) {
char c = gc();
while (bk(c)) c = gc();
x = c;
}
void read(string& x) {
char c = gc();
x.clear();
while ( bk(c)) c = gc();
while (!bk(c)) x += c, c = gc();
}
template <typename T1, typename T2> void read(pair <T1, T2> &x) {
read(x.fi), read(x.se);
}
template <typename T, typename ...Argc> void read(T& x, Argc&... argc) {
read(x), read(argc...);
}
template <typename T> void readt(T bg, T ed) {
for (T it = bg; it != ed; it++) {
read(*it);
}
}
} IO;
const int N = 123123;
ll n;
int main() {
IO.read(n);
while (n--) {
putchar('1');
for (int i = 1; i <= 8; i++) putchar('0');
putchar(' ');
}
return 0;
}
詳細信息
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 78ms
memory: 4764kb
input:
10000000 586147492 277843158 763400988 495484349 904760227 713646012 658851904 208634580 982137419 754105615 937137205 455909540 550717584 303008432 415147951 874851832 886138848 579340883 238299655 405521471 209255825 714480318 315178344 115385576 575357000 113550814 798093368 867521750 194040868 3...
output:
5499222115757666
result:
points 1.0 input test passed
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 252ms
memory: 3612kb
input:
10000000
output:
100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 ...
result:
points 1.0 output test passed