結果
| 問題 | No.164 ちっちゃくないよ!! |
| コンテスト | |
| ユーザー |
siman
|
| 提出日時 | 2015-04-02 01:50:03 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 95 ms / 2,000 ms |
| コード長 | 367 bytes |
| コンパイル時間 | 63 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 12,544 KB |
| 最終ジャッジ日時 | 2024-10-13 14:13:29 |
| 合計ジャッジ時間 | 1,707 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
コンパイルメッセージ
Syntax OK
ソースコード
class Yukicoder
LIST = [*('0'..'9')] + [*('A'..'Z')]
def initialize
n = gets.chomp.to_i
min_value = Float::INFINITY
n.times do
str = gets.chomp
e = str.chars.map{|ch| LIST.index(ch)}.max
min_value = [min_value, encode(str, e+1)].min
end
puts min_value
end
def encode(str, e)
str.to_i(e)
end
end
Yukicoder.new
siman