QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#479080 | #1. I/O Test | daydreamwarrior | 100 | 94ms | 4644kb | C++17 | 1.5kb | 2024-07-15 14:47:30 | 2024-07-15 14:47:31 |
Judging History
config.txt
10000000 0
input_test
#include <iostream>
#include <cstring>
#include <algorithm>
using namespace std;
namespace fastio{
struct{char buf[1024*1024],*p=buf;
operator char(){if(p==buf+sizeof(buf))fread(buf,sizeof(char),sizeof(buf),stdin),p=buf;return *p++;}
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;short 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(char(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{template<typename T>operator T(){
T x=0;char f=0,c=getchar();
while(c<'0'||c>'9'){if(c=='-')f=1;c=getchar();}
while(c>='0'&&c<='9'){x=x*10+(c^48);c=getchar();}
return f?-x:x;
}}in;int 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: 100
Accepted
Test #1:
score: 100
Accepted
time: 94ms
memory: 4644kb
input:
10000000 841874681 351737306 609177695 462931537 821126699 798572255 955937444 180322764 323057886 155576642 302748300 609758319 756542723 762368746 819237935 616519235 469479585 156185037 831987814 756819916 978028452 937708856 786682430 621525193 892333284 567645212 252970809 239169853 131035826 1...
output:
5501519660438152
result:
points 1.0 input test passed
Subtask #2:
score: 0
Skipped