結果
問題 | No.164 ちっちゃくないよ!! |
ユーザー | siman |
提出日時 | 2015-04-02 01:37:11 |
言語 | Ruby (3.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 404 bytes |
コンパイル時間 | 94 ms |
コンパイル使用メモリ | 11,452 KB |
実行使用メモリ | 15,472 KB |
最終ジャッジ日時 | 2023-09-17 00:51:56 |
合計ジャッジ時間 | 1,847 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 81 ms
15,268 KB |
testcase_01 | AC | 80 ms
15,080 KB |
testcase_02 | WA | - |
testcase_03 | AC | 79 ms
15,020 KB |
testcase_04 | AC | 79 ms
15,152 KB |
testcase_05 | AC | 98 ms
15,204 KB |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
コンパイルメッセージ
Syntax OK
ソースコード
class Yukicoder LIST = [*('0'..'9')] + [*('A'..'Z')] def initialize n = gets.chomp.to_i num_list = [] max_value = 0 n.times do str = gets.chomp num_list << str max_value = [max_value, str.chars.map{|ch| LIST.index(ch)}.max].max end puts num_list.map{|num| encode(num, max_value+1)}.min end def encode(str, e) str.to_i(e) end end Yukicoder.new