QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#673186 | #1. I/O Test | daydreamwarrior | 0 | 0ms | 0kb | C++14 | 1.6kb | 2024-10-24 20:57:19 | 2024-10-24 20:57:50 |
config.txt
10000000 10000000
input_test
#include <iostream>
#include <cstring>
#include <algorithm>
using namespace std;
namespace fastio{
struct{char buf[1<<20],*l=buf,*r=l;operator char(){
(l==r&&(r=(l=buf)+fread(buf,1,1<<20,stdin),stdin),l==r)?EOF:*l++;}
template<typename T>operator T(){T x=0;char f=0,c=*this;
while(c<'0'||c>'9'){if(c=='-')f=1;c=*this;}
while(c>='0'&&c<='9'){x=x*10+(c^48);c=*this;}
return f?-x:x;
}}in;signed stk[39],tp;
template<typename T>void out(T x,char c=0){
if(x<0)putchar('-'),x=-x;
do stk[tp++]=x%10;while(x/=10);
while(tp)putchar(stk[--tp]^48);
if(c)putchar(c);
}
}using fastio::in;using fastio::out;
int main(){
int n = in;
long long ans = 0;
for(int k=1;k<=n;k++)
ans += (int)in;
out(ans);
return 0;
}
output_test
#include <iostream>
#include <cstring>
#include <algorithm>
using namespace std;
namespace fastio{
struct{char buf[1<<20],*l=buf,*r=l;operator char(){
(l==r&&(r=(l=buf)+fread(buf,1,1<<20,stdin),stdin),l==r)?EOF:*l++;}
template<typename T>operator T(){T x=0;char f=0,c=*this;
while(c<'0'||c>'9'){if(c=='-')f=1;c=*this;}
while(c>='0'&&c<='9'){x=x*10+(c^48);c=*this;}
return f?-x:x;
}}in;signed stk[39],tp;
template<typename T>void out(T x,char c=0){
if(x<0)putchar('-'),x=-x;
do stk[tp++]=x%10;while(x/=10);
while(tp)putchar(stk[--tp]^48);
if(c)putchar(c);
}
}using fastio::in;using fastio::out;
int main(){
int n = in;
for(int k=1;k<=n;k++)
out(100000000,' ');
return 0;
}
详细
Subtask #1:
score: 0
input_test Time Limit Exceeded
Test #1:
score: 0
input_test Time Limit Exceeded
input:
10000000 884729709 104537881 497995885 749579174 576963044 355878204 636158835 678202945 471375769 969016257 713435694 948275282 530646782 585387513 145291408 519424066 129386502 555350678 329661693 279008474 395096082 378578195 222526715 204436769 456967415 643615052 338243437 382646877 840239200 7...
output:
result:
Subtask #2:
score: 0
output_test Runtime Error
Test #2:
score: 0
output_test Runtime Error
input:
10000000