結果
問題 |
No.191 供託金
|
ユーザー |
![]() |
提出日時 | 2015-04-26 18:59:16 |
言語 | Nim (2.2.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 239 bytes |
コンパイル時間 | 3,231 ms |
コンパイル使用メモリ | 65,408 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-29 01:51:45 |
合計ジャッジ時間 | 3,953 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 28) Warning: imported and not used: 'algorithm' [UnusedImport]
ソースコード
import strutils, sequtils, algorithm, math let n = readLine(stdin).parseInt cSeq = readLine(stdin).split(' ').map(parseInt) border = cSeq.sum div 10 var result = 0 for c in cSeq: if c <= border: result += 30 echo(result)