結果

問題 No.191 供託金
ユーザー ldsybldsyb
提出日時 2016-02-27 12:32:47
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 263 bytes
コンパイル時間 402 ms
コンパイル使用メモリ 54,864 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-04-16 17:38:15
合計ジャッジ時間 1,221 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 2 ms
5,376 KB
testcase_05 AC 2 ms
5,376 KB
testcase_06 AC 2 ms
5,376 KB
testcase_07 AC 1 ms
5,376 KB
testcase_08 WA -
testcase_09 AC 1 ms
5,376 KB
testcase_10 AC 2 ms
5,376 KB
testcase_11 AC 2 ms
5,376 KB
testcase_12 WA -
testcase_13 AC 2 ms
5,376 KB
testcase_14 AC 2 ms
5,376 KB
testcase_15 AC 2 ms
5,376 KB
testcase_16 AC 1 ms
5,376 KB
testcase_17 AC 1 ms
5,376 KB
testcase_18 WA -
testcase_19 AC 1 ms
5,376 KB
testcase_20 AC 2 ms
5,376 KB
testcase_21 AC 2 ms
5,376 KB
testcase_22 AC 2 ms
5,376 KB
testcase_23 AC 2 ms
5,376 KB
testcase_24 AC 2 ms
5,376 KB
testcase_25 AC 2 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main(){
   int ans = 0,n,vote = 0;
   cin >> n;
   int c[n];
   for(int i = 0;i < n;i++){
      cin >> c[i];
      vote += c[i];
   }
   for(int i = 0;i < n;i++) if(vote >= c[i]) ans++;
   cout << ans * 30 << endl;
}
0