結果
問題 | No.191 供託金 |
ユーザー | Yang33 |
提出日時 | 2016-01-06 09:54:57 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 286 bytes |
コンパイル時間 | 424 ms |
コンパイル使用メモリ | 55,460 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-16 21:58:41 |
合計ジャッジ時間 | 1,198 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
ソースコード
#include<iostream> using namespace std; int main(void) { double n, pa[105], sum=0; int i, ans = 0; cin >> n; for (i = 0; i < n; i++) { cin >> pa[i]; sum += pa[i]; } sum /= 10; for (i = 0; i < n; i++) { if (pa[i] <= sum)ans += 30; } cout << ans << endl; return 0; }