#include <bits/stdc++.h>
using namespace std;
#define forp(i,a,b) for(int i=a;i<=b;i++)
#define ll long long
#define newl '\n'
void solve(){
ll n,k; cin>>n>>k;
ll c,s=0;
forp(i,1,n){
cin>>c; s+=c;
}
cout<<s<<newl;
}
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
solve();
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
31 ms |
3000 KB |
Output is correct |
2 |
Correct |
34 ms |
3100 KB |
Output is correct |
3 |
Correct |
32 ms |
3096 KB |
Output is correct |
4 |
Correct |
30 ms |
3108 KB |
Output is correct |
5 |
Correct |
31 ms |
3096 KB |
Output is correct |
6 |
Correct |
30 ms |
3004 KB |
Output is correct |
7 |
Correct |
37 ms |
3016 KB |
Output is correct |
8 |
Correct |
32 ms |
3120 KB |
Output is correct |
9 |
Correct |
33 ms |
3020 KB |
Output is correct |
10 |
Correct |
34 ms |
3108 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
19 ms |
1320 KB |
Output is correct |
2 |
Correct |
23 ms |
1320 KB |
Output is correct |
3 |
Incorrect |
22 ms |
1320 KB |
Output isn't correct |
4 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
43 ms |
3228 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
204 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
204 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
204 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
31 ms |
3000 KB |
Output is correct |
2 |
Correct |
34 ms |
3100 KB |
Output is correct |
3 |
Correct |
32 ms |
3096 KB |
Output is correct |
4 |
Correct |
30 ms |
3108 KB |
Output is correct |
5 |
Correct |
31 ms |
3096 KB |
Output is correct |
6 |
Correct |
30 ms |
3004 KB |
Output is correct |
7 |
Correct |
37 ms |
3016 KB |
Output is correct |
8 |
Correct |
32 ms |
3120 KB |
Output is correct |
9 |
Correct |
33 ms |
3020 KB |
Output is correct |
10 |
Correct |
34 ms |
3108 KB |
Output is correct |
11 |
Correct |
19 ms |
1320 KB |
Output is correct |
12 |
Correct |
23 ms |
1320 KB |
Output is correct |
13 |
Incorrect |
22 ms |
1320 KB |
Output isn't correct |
14 |
Halted |
0 ms |
0 KB |
- |