結果
問題 |
No.191 供託金
|
ユーザー |
|
提出日時 | 2021-08-28 02:16:48 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 348 bytes |
コンパイル時間 | 1,519 ms |
コンパイル使用メモリ | 159,480 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-21 10:01:55 |
合計ジャッジ時間 | 2,688 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 22 RE * 1 |
ソースコード
#include<bits/stdc++.h> using namespace std; int main(){ long long n,allc=0; cin >> n; long long c[n]; for(int i=0; i<n; i++){ cin >> c[i]; allc+=c[i]; } long long ans=0; for(int i=0; i<n; i++){ double ch=allc/c[i]; cout << ch << endl; if(ch>=10) ans+=30; } cout << ans << endl; }