QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#478869 | #1. I/O Test | daydreamwarrior | 200 ✓ | 204ms | 3620kb | C++17 | 1.4kb | 2024-07-15 11:56:13 | 2024-07-15 11:56:15 |
Judging History
config.txt
10000000 10000000
input_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_unlocked();
while(c<'0'||c>'9'){if(c=='-')f=1;c=getchar_unlocked();}
while(c>='0'&&c<='9'){x=x*10+(c^48);c=getchar_unlocked();}
return f?-x:x;
}}in;int stk[39],tp;
template<typename T>void out(T x,char c=0){
if(x<0)putchar_unlocked('-'),x=-x;
do stk[tp++]=x%10;while(x/=10);
while(tp)putchar_unlocked(stk[--tp]^48);
if(c)putchar_unlocked(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_unlocked();
while(c<'0'||c>'9'){if(c=='-')f=1;c=getchar_unlocked();}
while(c>='0'&&c<='9'){x=x*10+(c^48);c=getchar_unlocked();}
return f?-x:x;
}}in;int stk[39],tp;
template<typename T>void out(T x,char c=0){
if(x<0)putchar_unlocked('-'),x=-x;
do stk[tp++]=x%10;while(x/=10);
while(tp)putchar_unlocked(stk[--tp]^48);
if(c)putchar_unlocked(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: 173ms
memory: 3544kb
input:
10000000 482222971 592831341 273089554 232419533 131860364 786608697 405834241 300742749 524876873 187042517 662380969 505024594 804606000 818129100 485180521 324985295 183716647 559923345 574726077 637877101 216064995 595681816 154964581 255491160 991272295 384457594 526119785 749116291 541495643 1...
output:
5498490883285515
result:
points 1.0 input test passed
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 204ms
memory: 3620kb
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