結果
問題 |
No.191 供託金
|
ユーザー |
![]() |
提出日時 | 2019-03-16 00:58:25 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 363 bytes |
コンパイル時間 | 1,510 ms |
コンパイル使用メモリ | 165,992 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-01 22:12:43 |
合計ジャッジ時間 | 2,524 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; int a[334], N, p, b; int main() { int ans = 0; cin >> N; for (int i = 0; i < N; i++) { cin >> a[i]; p += a[i]; } for (int i = 0; i < N; i++) { if (a[i] <= p / 10) ans += 30; } cout << ans << endl; }