QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#758646 | #1. I/O Test | baoyangawa | 200 ✓ | 227ms | 4804kb | C++14 | 3.2kb | 2024-11-17 19:13:16 | 2024-11-17 19:13:20 |
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;
char ob[MB + 100], *r;
fio() {
r = ob;
p = q = ib;
}
~fio() {fwrite(ob, 1, r - ob, stdout);}
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);
}
}
void pc(char c) {
// putchar(c); return;
if (r - ob == MB) r = ob, fwrite(ob, 1, MB, stdout);
*r++ = c;
}
} IO;
const int N = 123123;
ll n;
int main() {
IO.read(n);
while (n--) {
IO.pc('1');
for (int i = 1; i <= 8; i++) IO.pc('0');
IO.pc(' ');
}
return 0;
}
详细
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 79ms
memory: 4804kb
input:
10000000 951545663 305543733 694270724 218948108 103125331 501489827 717606337 142984939 653823019 809996114 563126616 674455844 472173640 571236692 423688950 205787155 596352989 608242770 225431470 453519967 699008188 526663408 402406604 506472951 964274585 709587661 153132054 554604396 164860754 2...
output:
5500381752696170
result:
points 1.0 input test passed
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 227ms
memory: 4604kb
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