UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#170411#1257. 小麦重量luojianwei22161000ms1336kbC++255b2023-04-21 21:26:372023-04-21 21:26:39

answer

#include <bits/stdc++.h>
using namespace std;

double a[2147483];
int main() {
	int n;
	long double xm = 0;
	cin >> n;
	for(int i = 1; i <= n; i++) cin >> a[i];
	xm = n * 100;
	for(int i = 1; i <= n; i++) xm += a[i];
	cout << xm;
	return 0;
}

详细

小提示:点击横条可展开更详细的信息

Test #1:

score: 50
Accepted
time: 0ms
memory: 1336kb

input:

5
-1 3 2 -2 1

output:

503

result:

ok single line: '503'

Test #2:

score: 50
Accepted
time: 0ms
memory: 1336kb

input:

10
-1 3 2 0 5 -6 0 -4 3 -2 1

output:

1000

result:

ok single line: '1000'