結果
| 問題 |
No.191 供託金
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-05-24 04:50:22 |
| 言語 | Nim (2.2.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 252 bytes |
| コンパイル時間 | 3,295 ms |
| コンパイル使用メモリ | 65,408 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-29 02:00:35 |
| 合計ジャッジ時間 | 3,894 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 39) Warning: imported and not used: 'math' [UnusedImport] /home/judge/data/code/Main.nim(1, 28) Warning: imported and not used: 'algorithm' [UnusedImport]
ソースコード
import strutils, sequtils, algorithm, math
var
n = readLine(stdin).parseInt
c = readLine(stdin).split().map(parseInt)
s = 0
ans = 0
for i in 0..(n - 1):
s += c[i]
for i in 0..(n - 1):
if 10 * c[i] <= s: ans += 30
echo($ans)