結果
問題 |
No.191 供託金
|
ユーザー |
![]() |
提出日時 | 2019-04-11 13:04:03 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 299 bytes |
コンパイル時間 | 510 ms |
コンパイル使用メモリ | 64,916 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-18 10:44:17 |
合計ジャッジ時間 | 1,357 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | WA * 23 |
ソースコード
#include <iostream> int main() { int a[110]; int b=0; int n; std::cin>>n; for (int i = 0; i < n; i++) { std::cin>>a[i]; b+=a[i]; } b/=10; int ans=0; for (int i = 0; i < n; i++) { ans+=(a[i]<b?a[i]:0); } std::cout<<ans<<std::endl; }