結果
問題 | No.191 供託金 |
ユーザー | kongarishisyamo |
提出日時 | 2016-03-05 11:14:45 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 279 bytes |
コンパイル時間 | 422 ms |
コンパイル使用メモリ | 55,448 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-16 22:02:25 |
合計ジャッジ時間 | 1,279 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
ソースコード
#include<iostream>#include<string>using namespace std;#define NMAX 100int main(){int N;long long C[NMAX];long long sum=0;int ans=0;cin>>N;for(int i=0;i<N;i++){cin>>C[i];sum+=C[i];}for(int i=0;i<N;i++) if(sum/10>=C[i]) ans+=30;cout<<ans<<endl;}