結果
問題 | No.191 供託金 |
ユーザー | mmmppp |
提出日時 | 2017-02-26 01:54:47 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 101 ms / 5,000 ms |
コード長 | 79 bytes |
コンパイル時間 | 66 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-06-11 15:33:03 |
合計ジャッジ時間 | 3,581 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n Syntax OK
ソースコード
n,*c=$<.read.split.map &:to_i s=c.reduce :+ p c.reduce(0){|a,e|a+(s<e*10?0:30)}