結果
| 問題 | No.164 ちっちゃくないよ!! |
| コンテスト | |
| ユーザー |
siman
|
| 提出日時 | 2015-04-02 01:50:03 |
| 言語 | Ruby (4.0.2) |
| 結果 |
AC
|
| 実行時間 | 64 ms / 2,000 ms |
| コード長 | 367 bytes |
| 記録 | |
| コンパイル時間 | 314 ms |
| コンパイル使用メモリ | 9,216 KB |
| 実行使用メモリ | 14,976 KB |
| 最終ジャッジ日時 | 2026-05-01 00:51:45 |
| 合計ジャッジ時間 | 1,888 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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