Submission #00033


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include<bits/stdc++.h>
using namespace std;
int main(){
int n, a, sum = 0, no = 0;
cin >> n;
for(int i = 0; i < n; i++){
cin >> a;
if(a == 0) no++;
else sum += a;
}
cout << ceil((double) sum / (n - no)) << endl;
}

ステータス

項目 データ
問題 0002 - 回れ雛月花 -Easy
ユーザー名 ei1541
投稿日時 2016-04-27 16:52:41
言語 C++11
状態 Accepted
得点 100
ソースコード長 568 Byte
最大実行時間 11 ms
最大メモリ使用量 492 KB

セット

セット 得点 Cases
1 ALL 100 / 100 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
abc015_b_in1.txt AC 11 ms 476 KB
1
abc015_b_in2.txt AC 10 ms 456 KB
1
abc015_b_in3.txt AC 11 ms 440 KB
1
abc015_b_in4.txt AC 14 ms 424 KB
1
abc015_b_in5.txt AC 10 ms 400 KB
1