QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#340272 | #1. I/O Test | BYR_KKK | 100 | 213ms | 3856kb | C++14 | 743b | 2024-02-28 20:07:22 | 2024-02-28 20:07:23 |
Judging History
config.txt
10000000 0
input_test
#include<bits/stdc++.h>
#define int long long
template<typename T>
void read(T &x){
int f=1;
char c=getchar();
x=0;
while(c<'0'||c>'9'){
if(c=='-') f=-1;
c=getchar();
}
while(c>='0'&&c<='9') x=x*10+(int)(c-'0'),c=getchar();
x*=f;
}
template<typename T,typename I>
void chkmin(T &a,I b){
a=std::min(a,b);
}
template<typename T,typename I>
void chkmax(T &a,T b){
a=std::max(a,b);
}
const int inf=1e18+10,MOD1=998244353,MOD2=1e9+7;
signed main(){
int n;
read(n);
int sum=0;
while(n--){
int a;
read(a);
sum+=a;
}
printf("%lld",sum);
return 0;
}
/*
-读入字符一定检查回车
- 能不能搜索?
-函数要有返回值!
-想好了再写!
*/
output_test
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 213ms
memory: 3856kb
input:
10000000 470740007 464268428 621004473 279741343 925346916 516186092 891252328 389260399 105965344 578851476 643859377 389321176 485581946 804061893 272164490 818053083 634305069 381383756 289334611 246110259 909263852 851168069 311183597 510436640 431507563 654120425 808320683 313166111 226313369 7...
output:
5500700941679752
result:
points 1.0 input test passed
Subtask #2:
score: 0
Skipped