QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#516381 | #1. I/O Test | LIUIR | 20 | 24ms | 7188kb | C++14 | 2.4kb | 2024-08-12 16:37:43 | 2024-08-12 16:37:43 |
Judging History
config.txt
1000000 1000000
input_test
#include <bits/stdc++.h>
#define ll long long
namespace IO
{
char buf[1 << 21], *p1 = buf, *p2 = buf;
char Gc(){return p1 == p2 && (p2 = (p1 = buf) + fread(buf, 1, 1 << 21, stdin), p1 == p2) ? EOF : *p1++;}
int Read()
{
int x = 0, f = 1;
char ch = Gc();
while(ch < '0' || ch > '9')
{
if (ch == '-')
f = -1;
ch = Gc();
}
while(ch >= '0' && ch <= '9')
x = (x << 1) + (x << 3) + (ch ^ 48), ch = Gc();
return x * f;
}
char pbuf[1 << 21], *pp = pbuf;
void Flush(){fwrite(pbuf, 1, pp - pbuf, stdout), pp = pbuf;}
void Pc(char c){if (pp - pbuf == 1 << 21) Flush(); *pp++ = c;}
void Write(ll x)
{
static int top = 0, sta[20];
if (x < 0)
Pc('-'), x = -x;
do
{
sta[++top] = x % 10;
x /= 10;
}while(x);
while(top)
Pc(sta[top--] + '0');
}
void Write(ll x, char c){Write(x), Pc(c);}
}
using namespace std;
using namespace IO;
signed main()
{
//freopen("out.txt", "w", stdout);
int n = Read();
ll ans = 0;
for (int i = 1; i <= n; i++)
ans += Read();
Write(ans);
/*int n = Read(), x = 1e8;
for (int i = 1; i <= n; i++)
Write(x, ' ');
int n = Read(), x = 1e8;
Write(n, '\n');
for (int i = 1; i <= n; i++)
Write(i, ' ');*/
Flush();
return 0;
}
output_test
#include <bits/stdc++.h>
#define ll long long
namespace IO
{
char buf[1 << 21], *p1 = buf, *p2 = buf;
char Gc(){return p1 == p2 && (p2 = (p1 = buf) + fread(buf, 1, 1 << 21, stdin), p1 == p2) ? EOF : *p1++;}
int Read()
{
int x = 0, f = 1;
char ch = Gc();
while(ch < '0' || ch > '9')
{
if (ch == '-')
f = -1;
ch = Gc();
}
while(ch >= '0' && ch <= '9')
x = (x << 1) + (x << 3) + (ch ^ 48), ch = Gc();
return x * f;
}
char pbuf[1 << 21], *pp = pbuf;
void Flush(){fwrite(pbuf, 1, pp - pbuf, stdout), pp = pbuf;}
void Pc(char c){if (pp - pbuf == 1 << 21) Flush(); *pp++ = c;}
void Write(ll x)
{
static int top = 0, sta[20];
if (x < 0)
Pc('-'), x = -x;
do
{
sta[++top] = x % 10;
x /= 10;
}while(x);
while(top)
Pc(sta[top--] + '0');
}
void Write(ll x, char c){Write(x), Pc(c);}
}
using namespace std;
using namespace IO;
signed main()
{
/*int n = Read();
ll ans = 0;
for (int i = 1; i <= n; i++)
ans += Read();
Write(ans);*/
int n = Read(), x = 1e8;
for (int i = 1; i <= n; i++)
Write(x, ' ');
Flush();
return 0;
}
详细
Subtask #1:
score: 10
Acceptable Answer
Test #1:
score: 10
Acceptable Answer
time: 11ms
memory: 6300kb
input:
1000000 401667994 581295751 118065074 976332657 711113124 261627075 193797141 815865259 270562848 447211915 115439288 109368229 785380848 986956009 332702846 525583318 572951749 482800912 678098409 926979722 991021329 610723480 889515792 921103551 224975476 296989441 595219606 771854585 289914040 12...
output:
550218410922374
result:
points 0.10 input test passed
Subtask #2:
score: 10
Acceptable Answer
Test #2:
score: 10
Acceptable Answer
time: 24ms
memory: 7188kb
input:
1000000
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 0.10 output test passed