結果

問題 No.1883 SLASH
ユーザー osyo-mangaosyo-manga
提出日時 2023-05-19 16:19:34
言語 Ruby
(3.3.0)
結果
AC  
実行時間 85 ms / 2,000 ms
コード長 197 bytes
コンパイル時間 63 ms
コンパイル使用メモリ 11,272 KB
実行使用メモリ 15,336 KB
最終ジャッジ日時 2023-08-22 21:12:23
合計ジャッジ時間 2,510 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
15,052 KB
testcase_01 AC 81 ms
15,280 KB
testcase_02 AC 79 ms
15,336 KB
testcase_03 AC 79 ms
15,316 KB
testcase_04 AC 81 ms
15,324 KB
testcase_05 AC 79 ms
15,288 KB
testcase_06 AC 81 ms
15,052 KB
testcase_07 AC 80 ms
15,116 KB
testcase_08 AC 79 ms
15,052 KB
testcase_09 AC 78 ms
15,044 KB
testcase_10 AC 81 ms
15,092 KB
testcase_11 AC 79 ms
15,068 KB
testcase_12 AC 80 ms
15,236 KB
testcase_13 AC 80 ms
15,272 KB
testcase_14 AC 82 ms
15,068 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

# 入力された値を文字列で受け取る
str = gets.chomp

# 文字を数値の配列に変換する
xs = str.chars.map { _1.to_i }

# 最大値から最小値を引く
puts xs.max - xs.min
0