結果

問題 No.1362 [Zelkova 8th Tune] Black Sheep
ユーザー maguroflymagurofly
提出日時 2021-01-23 00:22:59
言語 Ruby
(3.3.0)
結果
AC  
実行時間 230 ms / 1,000 ms
コード長 122 bytes
コンパイル時間 519 ms
コンパイル使用メモリ 11,456 KB
実行使用メモリ 43,324 KB
最終ジャッジ日時 2023-08-28 09:53:19
合計ジャッジ時間 8,167 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
15,232 KB
testcase_01 AC 75 ms
15,144 KB
testcase_02 AC 75 ms
15,236 KB
testcase_03 AC 77 ms
15,320 KB
testcase_04 AC 77 ms
15,264 KB
testcase_05 AC 75 ms
15,232 KB
testcase_06 AC 76 ms
15,100 KB
testcase_07 AC 76 ms
15,144 KB
testcase_08 AC 75 ms
15,248 KB
testcase_09 AC 75 ms
15,036 KB
testcase_10 AC 76 ms
15,084 KB
testcase_11 AC 76 ms
15,084 KB
testcase_12 AC 76 ms
15,144 KB
testcase_13 AC 176 ms
36,628 KB
testcase_14 AC 170 ms
34,676 KB
testcase_15 AC 91 ms
17,200 KB
testcase_16 AC 129 ms
24,808 KB
testcase_17 AC 186 ms
38,452 KB
testcase_18 AC 140 ms
28,144 KB
testcase_19 AC 224 ms
42,400 KB
testcase_20 AC 156 ms
30,536 KB
testcase_21 AC 142 ms
28,380 KB
testcase_22 AC 174 ms
35,648 KB
testcase_23 AC 226 ms
43,228 KB
testcase_24 AC 226 ms
43,100 KB
testcase_25 AC 225 ms
43,020 KB
testcase_26 AC 227 ms
43,148 KB
testcase_27 AC 225 ms
43,128 KB
testcase_28 AC 228 ms
43,244 KB
testcase_29 AC 226 ms
43,184 KB
testcase_30 AC 230 ms
43,080 KB
testcase_31 AC 226 ms
43,324 KB
testcase_32 AC 226 ms
43,292 KB
testcase_33 AC 226 ms
43,244 KB
testcase_34 AC 226 ms
43,012 KB
testcase_35 AC 77 ms
15,144 KB
testcase_36 AC 75 ms
15,288 KB
testcase_37 AC 75 ms
15,228 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

S = gets.chomp
S.chars.tally.each do |c, count|
    next unless count == 1
    puts "#{S.index(c) + 1} #{c}"
    break
end
0