結果

問題 No.164 ちっちゃくないよ!!
ユーザー tkzw_21tkzw_21
提出日時 2015-03-13 12:51:13
言語 Ruby
(3.3.0)
結果
AC  
実行時間 101 ms / 2,000 ms
コード長 238 bytes
コンパイル時間 55 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 12,672 KB
最終ジャッジ日時 2024-04-21 15:21:52
合計ジャッジ時間 1,722 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 93 ms
12,160 KB
testcase_01 AC 88 ms
12,160 KB
testcase_02 AC 89 ms
12,288 KB
testcase_03 AC 90 ms
12,416 KB
testcase_04 AC 89 ms
12,416 KB
testcase_05 AC 101 ms
12,544 KB
testcase_06 AC 95 ms
12,672 KB
testcase_07 AC 95 ms
12,160 KB
testcase_08 AC 95 ms
12,544 KB
testcase_09 AC 94 ms
12,672 KB
testcase_10 AC 89 ms
12,160 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.to_i
a = []
for i in 1..n
	a.push(gets.to_s)
end

t = 0
dic = {}
for s in "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".chars
	dic[s] = t
	t += 1
end

ar = []
for i in 0..n-1
	ar.push(a[i].to_i(dic[a[i].chars.max]+1))
end
puts ar.min

0