結果
問題 | No.191 供託金 |
ユーザー | umaumax |
提出日時 | 2017-05-03 01:14:05 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 310 bytes |
コンパイル時間 | 400 ms |
コンパイル使用メモリ | 54,616 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-14 04:49:11 |
合計ジャッジ時間 | 1,279 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
ソースコード
#include <iostream> using namespace std; int main(int argc, const char* argv[]) { int N; cin >> N; int C[N]; for (auto&& c : C) cin >> c; int sum = 0; for (auto&& c : C) sum += c; int cnt = 0; int th = (sum + 10 - 1) / 10; for (auto&& c : C) cnt += c <= th; cout << 30 * cnt << endl; return 0; }