結果

問題 No.1362 [Zelkova 8th Tune] Black Sheep
ユーザー universatouniversato
提出日時 2021-01-22 21:26:59
言語 Ruby
(3.2.2)
結果
AC  
実行時間 248 ms / 1,000 ms
コード長 99 bytes
コンパイル時間 1,066 ms
コンパイル使用メモリ 11,296 KB
実行使用メモリ 43,280 KB
最終ジャッジ日時 2023-08-27 17:20:57
合計ジャッジ時間 9,495 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,012 KB
testcase_01 AC 82 ms
15,244 KB
testcase_02 AC 82 ms
15,152 KB
testcase_03 AC 82 ms
15,244 KB
testcase_04 AC 82 ms
15,112 KB
testcase_05 AC 83 ms
15,208 KB
testcase_06 AC 81 ms
14,976 KB
testcase_07 AC 83 ms
15,240 KB
testcase_08 AC 83 ms
15,248 KB
testcase_09 AC 82 ms
15,264 KB
testcase_10 AC 81 ms
15,076 KB
testcase_11 AC 84 ms
15,108 KB
testcase_12 AC 82 ms
15,156 KB
testcase_13 AC 189 ms
36,312 KB
testcase_14 AC 178 ms
34,576 KB
testcase_15 AC 98 ms
17,304 KB
testcase_16 AC 138 ms
24,644 KB
testcase_17 AC 201 ms
38,588 KB
testcase_18 AC 151 ms
28,016 KB
testcase_19 AC 243 ms
42,340 KB
testcase_20 AC 170 ms
30,412 KB
testcase_21 AC 152 ms
28,244 KB
testcase_22 AC 184 ms
35,608 KB
testcase_23 AC 238 ms
43,072 KB
testcase_24 AC 248 ms
43,156 KB
testcase_25 AC 245 ms
43,276 KB
testcase_26 AC 247 ms
43,088 KB
testcase_27 AC 238 ms
43,048 KB
testcase_28 AC 241 ms
42,984 KB
testcase_29 AC 245 ms
43,204 KB
testcase_30 AC 244 ms
43,084 KB
testcase_31 AC 246 ms
43,272 KB
testcase_32 AC 245 ms
43,076 KB
testcase_33 AC 248 ms
43,092 KB
testcase_34 AC 239 ms
43,280 KB
testcase_35 AC 81 ms
15,072 KB
testcase_36 AC 81 ms
15,016 KB
testcase_37 AC 81 ms
15,280 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

s = gets.to_s.chomp.chars

c = s.tally.sort_by{ |k, v| v }[0][0]
puts "#{s.find_index(c) + 1} #{c}"
0