結果
問題 | No.164 ちっちゃくないよ!! |
ユーザー | suppy193 |
提出日時 | 2015-06-18 11:15:37 |
言語 | Ruby (3.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 238 bytes |
コンパイル時間 | 60 ms |
コンパイル使用メモリ | 11,284 KB |
実行使用メモリ | 15,572 KB |
最終ジャッジ日時 | 2023-09-21 09:25:22 |
合計ジャッジ時間 | 1,995 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | RE | - |
testcase_02 | AC | 83 ms
15,024 KB |
testcase_03 | AC | 76 ms
15,304 KB |
testcase_04 | RE | - |
testcase_05 | AC | 80 ms
15,216 KB |
testcase_06 | AC | 80 ms
15,156 KB |
testcase_07 | AC | 78 ms
15,236 KB |
testcase_08 | AC | 80 ms
15,356 KB |
testcase_09 | WA | - |
testcase_10 | AC | 78 ms
15,300 KB |
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n Main.rb:6: warning: assigned but unused variable - baset Syntax OK
ソースコード
n = gets.chomp.to_i numbers = [] while (line = gets) max = line.chomp.split('').max if max >= '0' && max <= '9' baset = max.to_i + 1 else base = max.ord - 'A'.ord + 10 + 1 end numbers << line.chomp.to_i(base) end puts numbers.min