QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#340272#1. I/O TestBYR_KKK100 213ms3856kbC++14743b2024-02-28 20:07:222024-02-28 20:07:23

Judging History

你现在查看的是最新测评结果

  • [2024-02-28 20:07:23]
  • 评测
  • 测评结果:100
  • 用时:213ms
  • 内存:3856kb
  • [2024-02-28 20:07:22]
  • 提交

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


詳細信息

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