結果

問題 No.191 供託金
コンテスト
ユーザー roiti46
提出日時 2015-05-24 04:48:11
言語 Nim
(2.2.8)
コンパイル:
nim --nimcache=~ --hints:off -o:a.out -d:release cpp _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 252 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 2,364 ms
コンパイル使用メモリ 70,116 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2026-03-18 11:19:01
合計ジャッジ時間 3,157 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 21 WA * 2
権限があれば一括ダウンロードができます
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 28) Warning: imported and not used: 'algorithm' [UnusedImport]

ソースコード

diff #
raw source code

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)

0