結果
| 問題 | No.191 供託金 |
| コンテスト | |
| ユーザー |
158b
|
| 提出日時 | 2015-05-24 11:13:16 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 5,000 ms |
| + 270µs | |
| コード長 | 410 bytes |
| 記録 | |
| コンパイル時間 | 307 ms |
| コンパイル使用メモリ | 86,924 KB |
| 実行使用メモリ | 9,876 KB |
| 最終ジャッジ日時 | 2026-09-25 00:39:20 |
| 合計ジャッジ時間 | 1,722 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
#include <iostream>
#include <algorithm>
#include <functional>
#include <string>
#include <limits.h>
#include <vector>
#include <numeric>
using namespace std;
int main(){
int n;
int vote[100];
int sum = 0;
int ans = 0;
cin >> n;
for(int i=0; i<n; i++){
cin >> vote[i];
sum += vote[i];
}
for(int i=0; i<n; i++){
if(vote[i] <= sum/10){
ans += 30;
}
}
cout << ans << endl;
return 0;
}
158b