結果
問題 | No.164 ちっちゃくないよ!! |
ユーザー |
![]() |
提出日時 | 2015-03-13 12:51:13 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 87 ms / 2,000 ms |
コード長 | 238 bytes |
コンパイル時間 | 133 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,544 KB |
最終ジャッジ日時 | 2024-10-13 14:11:29 |
合計ジャッジ時間 | 1,666 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
コンパイルメッセージ
Syntax OK
ソースコード
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