ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#169874 | #1698. 小C捡钱 | luojianwei2216 | 100 | 38ms | 1292kb | C++ | 205b | 2023-03-11 17:18:27 | 2023-03-11 17:18:28 |
answer
#include <bits/stdc++.h>
using namespace std;
long long a[214748];
int main() {
int n;
cin >> n;
for(int i = 0; i < n; i++) {
cin >> a[i];
}
sort(a, a + n);
cout << a[n-1];
return 0;
}
详细
小提示:点击横条可展开更详细的信息
Test #1:
score: 10
Accepted
time: 3ms
memory: 1276kb
input:
10000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8 1 0 1 1 0 0 3 90 53 1 1 1 1 1 5 1 2 3 22 2 1 2 3 6 2 3 2 2 5 2...
output:
118866296281
result:
ok single line: '118866296281'
Test #2:
score: 10
Accepted
time: 5ms
memory: 1288kb
input:
10000 1 8 27 64 125 216 343 512 729 1000 1331 1728 2197 2744 3375 4096 4913 5832 6859 8000 9261 1064...
output:
1000000000000
result:
ok single line: '1000000000000'
Test #3:
score: 10
Accepted
time: 10ms
memory: 1288kb
input:
10000 1 16 81 256 625 1296 2401 4096 6561 10000 14641 20736 28561 38416 50625 65536 83521 104976 130...
output:
10000000000000000
result:
ok single line: '10000000000000000'
Test #4:
score: 10
Accepted
time: 3ms
memory: 1292kb
input:
10000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 3...
output:
10000
result:
ok single line: '10000'
Test #5:
score: 10
Accepted
time: 3ms
memory: 1276kb
input:
10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 1000...
output:
10000
result:
ok single line: '10000'
Test #6:
score: 10
Accepted
time: 4ms
memory: 1288kb
input:
10000 0 1 1 0 4 4 5 6 7 4 7 5 11 13 1 11 3 8 1 16 9 18 15 9 17 6 6 12 27 5 22 30 20 12 14 4 26 3 31 ...
output:
9714
result:
ok single line: '9714'
Test #7:
score: 10
Accepted
time: 0ms
memory: 1200kb
input:
10 1 524288 1162261467 274877906944 19073486328125 609359740010496 11398895185373144 144115188075855...
output:
9223372036854775807
result:
ok single line: '9223372036854775807'
Test #8:
score: 10
Accepted
time: 2ms
memory: 1280kb
input:
10000 9000000000000000 9000000000000000 9000000000000000 9000000000000000 9000000000000000 900000000...
output:
9000000000000000
result:
ok single line: '9000000000000000'
Test #9:
score: 10
Accepted
time: 3ms
memory: 1292kb
input:
10000 8513255888029483049 8513255888029519942 8513255888029502010 8513255888029589008 85132558880295...
output:
8513255888354871814
result:
ok single line: '8513255888354871814'
Test #10:
score: 10
Accepted
time: 5ms
memory: 1292kb
input:
10000 41 36934 19002 106000 95845 94344 80346 234864 242658 244640 62755 337740 302653 235578 149415...
output:
325388806
result:
ok single line: '325388806'