QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#479019 | #1. I/O Test | daydreamwarrior | 200 ✓ | 200ms | 3632kb | C++17 | 1.6kb | 2024-07-15 14:02:59 | 2024-07-15 14:03:01 |
Judging History
config.txt
10000000 10000000
input_test
#include <iostream>
#include <cstring>
#include <algorithm>
using namespace std;
namespace fastio{
struct{operator char(){return getchar_unlocked();}
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;
inline void out(char c){putchar_unlocked(c);}
template<typename T>inline void out(T x,char c=0){
if(x<0)out('-'),x=-x;
do stk[tp++]=x%10;while(x/=10);
while(tp)out(char(stk[--tp]^48));
if(c)out(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{operator char(){return getchar_unlocked();}
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;
inline void out(char c){putchar_unlocked(c);}
template<typename T>inline void out(T x,char c=0){
if(x<0)out('-'),x=-x;
do stk[tp++]=x%10;while(x/=10);
while(tp)out(char(stk[--tp]^48));
if(c)out(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: 166ms
memory: 3536kb
input:
10000000 917344774 883020916 597261408 413586715 929904365 662283885 117965546 576792394 699310184 921282068 796599917 308241013 135752397 436247559 740290964 503653349 782047737 689056473 277669091 782146357 927540203 690875083 424983311 740075557 195394576 941367070 952950981 882818484 478396598 9...
output:
5499677320209101
result:
points 1.0 input test passed
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 200ms
memory: 3632kb
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