結果
問題 | No.191 供託金 |
ユーザー | machy |
提出日時 | 2015-06-10 22:37:40 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 373 bytes |
コンパイル時間 | 491 ms |
コンパイル使用メモリ | 58,588 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-16 20:41:37 |
合計ジャッジ時間 | 1,229 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
ソースコード
#include <iostream>#include <vector>using namespace std;int main(){int N;cin >> N;vector<int> num(N);int total = 0;for(int i = 0; i < N; i++){cin >> num[i];total += num[i];}int money = 0;for(int i = 0; i < N; i++){if(total >= num[i] * 10) money += 30;}cout << money << endl;return 0;}