結果

問題 No.164 ちっちゃくないよ!!
ユーザー maimai
提出日時 2016-07-15 02:13:49
言語 Ruby
(3.2.2)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 155 bytes
コンパイル時間 64 ms
コンパイル使用メモリ 11,580 KB
実行使用メモリ 15,360 KB
最終ジャッジ日時 2023-08-05 02:38:23
合計ジャッジ時間 1,845 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,040 KB
testcase_01 AC 80 ms
15,060 KB
testcase_02 AC 81 ms
15,360 KB
testcase_03 AC 82 ms
15,040 KB
testcase_04 AC 82 ms
15,252 KB
testcase_05 AC 84 ms
15,140 KB
testcase_06 AC 84 ms
15,204 KB
testcase_07 AC 84 ms
15,252 KB
testcase_08 AC 83 ms
15,280 KB
testcase_09 AC 84 ms
15,056 KB
testcase_10 AC 81 ms
15,064 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n=gets.to_i

small=nil
n.times{
    e=gets.chomp
    k=e.bytes.max
    
    t=e.to_i(k>=65 ? (k-54) : (k-47))
    
    small=t if !small||t<small
}
p small
0