結果

問題 No.1362 [Zelkova 8th Tune] Black Sheep
ユーザー betit0919betit0919
提出日時 2021-01-22 21:39:48
言語 Ruby
(3.3.0)
結果
AC  
実行時間 333 ms / 1,000 ms
コード長 94 bytes
コンパイル時間 582 ms
コンパイル使用メモリ 11,372 KB
実行使用メモリ 67,116 KB
最終ジャッジ日時 2023-08-27 18:02:29
合計ジャッジ時間 9,999 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
15,132 KB
testcase_01 AC 86 ms
15,124 KB
testcase_02 AC 85 ms
15,260 KB
testcase_03 AC 86 ms
15,360 KB
testcase_04 AC 84 ms
15,308 KB
testcase_05 AC 85 ms
15,152 KB
testcase_06 AC 84 ms
15,048 KB
testcase_07 AC 86 ms
15,048 KB
testcase_08 AC 86 ms
15,260 KB
testcase_09 AC 83 ms
15,076 KB
testcase_10 AC 84 ms
15,128 KB
testcase_11 AC 87 ms
15,264 KB
testcase_12 AC 84 ms
15,324 KB
testcase_13 AC 271 ms
39,020 KB
testcase_14 AC 260 ms
38,944 KB
testcase_15 AC 108 ms
19,216 KB
testcase_16 AC 167 ms
33,784 KB
testcase_17 AC 283 ms
39,940 KB
testcase_18 AC 213 ms
38,936 KB
testcase_19 AC 320 ms
65,732 KB
testcase_20 AC 228 ms
38,884 KB
testcase_21 AC 216 ms
39,236 KB
testcase_22 AC 264 ms
39,076 KB
testcase_23 AC 317 ms
66,776 KB
testcase_24 AC 333 ms
67,116 KB
testcase_25 AC 323 ms
66,916 KB
testcase_26 AC 323 ms
66,816 KB
testcase_27 AC 315 ms
67,056 KB
testcase_28 AC 318 ms
67,064 KB
testcase_29 AC 325 ms
66,812 KB
testcase_30 AC 325 ms
66,900 KB
testcase_31 AC 323 ms
67,048 KB
testcase_32 AC 322 ms
66,840 KB
testcase_33 AC 322 ms
66,872 KB
testcase_34 AC 313 ms
66,852 KB
testcase_35 AC 83 ms
15,036 KB
testcase_36 AC 82 ms
15,152 KB
testcase_37 AC 84 ms
15,132 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

s = gets.chomp
c = s.chars.tally.min_by{|a|a[1]}[0]
puts("#{s.chars.find_index(c) + 1} #{c}")
0