結果
| 問題 | No.191 供託金 |
| コンテスト | |
| ユーザー |
hadrori
|
| 提出日時 | 2015-07-25 17:26:44 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 5,000 ms |
| + 378µs | |
| コード長 | 404 bytes |
| 記録 | |
| コンパイル時間 | 786 ms |
| コンパイル使用メモリ | 177,160 KB |
| 実行使用メモリ | 9,916 KB |
| 最終ジャッジ日時 | 2026-09-25 00:50:08 |
| 合計ジャッジ時間 | 2,373 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define repi(i,a,b) for(int i=(int)(a);i<(int)(b);i++)
#define rep(i,n) repi(i,0,n)
int n, c[128];
int solve() {
int m = accumulate(c,c+n,0), sum = 0;
rep(i,n) if(c[i] <= m/10) sum += 30;
return sum;
}
void input() {
scanf("%d", &n);
rep(i,n) scanf("%d", c+i);
}
int main() {
input();
printf("%d\n", solve());
return 0;
}
hadrori