結果
問題 | No.191 供託金 |
ユーザー | kiyunetsubamna |
提出日時 | 2015-05-19 10:48:36 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 316 bytes |
コンパイル時間 | 522 ms |
コンパイル使用メモリ | 57,556 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-16 20:35:29 |
合計ジャッジ時間 | 1,299 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
ソースコード
#include<iostream>#include <math.h>#include <string>using namespace std;int main(){int n;int c[100];int t = 0;int a = 0;cin >> n;for (int i = 0; i < n; i++){cin >> c[i];t += c[i];}for (int i1 = 0; i1 < n; i1++){if (c[i1] <= (t / 10)){a += 30;}}cout << a << endl;return 0;}