QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#524644 | #1. I/O Test | CHD | 20.34324 | 35ms | 2304kb | C++14 | 2.6kb | 2024-08-19 22:09:49 | 2024-08-19 22:09:50 |
Judging History
config.txt
114514 1919810
input_test
#include<cstdio>
using namespace std;
namespace my_fastIO
{
const int st_max=1000000;
int top_in,num_in,top_out;
char in_stack[st_max+100],out_stack[st_max+100];
char input()
{
if(top_in>=num_in)
{
top_in=0;
num_in=fread(in_stack,1,st_max,stdin);
}
if(num_in==0)
return 0;
return in_stack[top_in++];
}
void output(char c)
{
if(top_out==st_max)
{
fwrite(out_stack,1,top_out,stdout);
top_out=0;
}
out_stack[top_out++]=c;
}
void read(){}
template<typename T>void read(T &x)
{
char c=input();
while(c<'0'||c>'9')
c=input();
x=c-'0';
while(1)
{
c=input();
if(c<'0'||c>'9')
return;
x=x*10+c-'0';
}
}
template<typename T,typename ...Ts>void read(T &a,Ts &...ts)
{
read(a);
read(ts...);
}
void print(){}
template<typename T>void print(T x)
{
if(x<10)
output((char)(x+'0'));
else
{
print(x/10);
output((char)(x%10+'0'));
}
}
template<typename T,typename ...Ts>void print(T a,Ts ...ts)
{
print(a);
output(' ');
print(ts...);
}
void fwrap()
{
output('\n');
fwrite(out_stack,1,top_out,stdout);
top_out=0;
}
}
using namespace my_fastIO;
int n,i,a;
long long sum;
main()
{
read(n);
for(i=1;i<=n;i++)
{
read(a);
sum+=a;
}
print(sum);
fwrap();
}
output_test
#include<cstdio>
using namespace std;
namespace my_fastIO
{
const int st_max=1000000;
int top_in,num_in,top_out;
char in_stack[st_max+100],out_stack[st_max+100];
char input()
{
if(top_in>=num_in)
{
top_in=0;
num_in=fread(in_stack,1,st_max,stdin);
}
if(num_in==0)
return 0;
return in_stack[top_in++];
}
void output(char c)
{
if(top_out==st_max)
{
fwrite(out_stack,1,top_out,stdout);
top_out=0;
}
out_stack[top_out++]=c;
}
void read(){}
template<typename T>void read(T &x)
{
char c=input();
while(c<'0'||c>'9')
c=input();
x=c-'0';
while(1)
{
c=input();
if(c<'0'||c>'9')
return;
x=x*10+c-'0';
}
}
template<typename T,typename ...Ts>void read(T &a,Ts &...ts)
{
read(a);
read(ts...);
}
void print(){}
template<typename T>void print(T x)
{
if(x<10)
output((char)(x+'0'));
else
{
print(x/10);
output((char)(x%10+'0'));
}
}
template<typename T,typename ...Ts>void print(T a,Ts ...ts)
{
print(a);
output(' ');
print(ts...);
}
void fwrap()
{
output('\n');
fwrite(out_stack,1,top_out,stdout);
top_out=0;
}
}
using namespace my_fastIO;
int n,i,z;
long long sum;
main()
{
read(n);
for(i=1;i<=n;i++)
{
print(i+100000000);
output(' ');
}
fwrap();
}
詳細信息
Subtask #1:
score: 1.14514
Acceptable Answer
Test #1:
score: 1.14514
Acceptable Answer
time: 3ms
memory: 2288kb
input:
114514 321071354 674141688 918928773 384585030 364725855 540250659 116565425 273873333 245347655 322708786 468348352 942288786 610255864 477061999 229736637 191682363 484995292 758541495 921183799 579449188 475882299 340340575 239069034 215778964 127478830 110899227 370445441 381167911 999725261 110...
output:
62893800833019
result:
points 0.01145140 input test passed
Subtask #2:
score: 19.1981
Acceptable Answer
Test #2:
score: 19.1981
Acceptable Answer
time: 35ms
memory: 2304kb
input:
1919810
output:
100000001 100000002 100000003 100000004 100000005 100000006 100000007 100000008 100000009 100000010 100000011 100000012 100000013 100000014 100000015 100000016 100000017 100000018 100000019 100000020 100000021 100000022 100000023 100000024 100000025 100000026 100000027 100000028 100000029 100000030 ...
result:
points 0.1919810 output test passed