結果
問題 | No.191 供託金 |
ユーザー | kuisiba |
提出日時 | 2016-04-08 14:23:01 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 490 bytes |
コンパイル時間 | 459 ms |
コンパイル使用メモリ | 59,636 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-16 22:07:32 |
合計ジャッジ時間 | 1,201 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
ソースコード
#include <iostream> #include <vector> using namespace std; int main() { std::ios::sync_with_stdio(false); std::cin.tie(0); int n; cin >> n; vector<int> vec; int allVote = 0; for (int i = 0; i < n; ++i) { int temp; cin >> temp; allVote += temp; vec.push_back(temp); } int count = 0; for (int j = 0; j < n; ++j) { if (vec.at(j) <= allVote / 10) count++; } cout << count * 30 << endl; return 0; }