結果
| 問題 | No.191 供託金 |
| コンテスト | |
| ユーザー |
negi_magnet
|
| 提出日時 | 2015-04-28 18:42:10 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 5,000 ms |
| + 403µs | |
| コード長 | 415 bytes |
| 記録 | |
| コンパイル時間 | 323 ms |
| コンパイル使用メモリ | 85,740 KB |
| 実行使用メモリ | 9,804 KB |
| 最終ジャッジ日時 | 2026-09-25 00:35:37 |
| 合計ジャッジ時間 | 1,818 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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