結果
| 問題 |
No.191 供託金
|
| コンテスト | |
| ユーザー |
negi_magnet
|
| 提出日時 | 2015-04-28 18:42:10 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 415 bytes |
| コンパイル時間 | 564 ms |
| コンパイル使用メモリ | 61,440 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-16 20:30:26 |
| 合計ジャッジ時間 | 1,332 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <utility>
#include <cstring>
using namespace std;
#define rep(i,n) for(int i=0; i<n; i++)
typedef long long ll;
int main() {
int n;
cin >> n;
vector<int> c(n);
ll sum = 0;
rep(i,n) {
cin >> c[i];
sum += c[i];
}
int res = 0;
rep(i, n) {
if(c[i]*10 <= sum) {
res += 30;
}
}
cout << res << endl;
return 0;
}
negi_magnet