結果

問題 No.1362 [Zelkova 8th Tune] Black Sheep
ユーザー simansiman
提出日時 2021-01-23 19:15:44
言語 Ruby
(3.3.0)
結果
AC  
実行時間 251 ms / 1,000 ms
コード長 168 bytes
コンパイル時間 151 ms
コンパイル使用メモリ 11,492 KB
実行使用メモリ 47,200 KB
最終ジャッジ日時 2023-08-30 03:45:04
合計ジャッジ時間 8,053 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,056 KB
testcase_01 AC 81 ms
15,124 KB
testcase_02 AC 82 ms
15,120 KB
testcase_03 AC 82 ms
15,056 KB
testcase_04 AC 83 ms
15,116 KB
testcase_05 AC 81 ms
15,112 KB
testcase_06 AC 82 ms
15,108 KB
testcase_07 AC 82 ms
15,108 KB
testcase_08 AC 82 ms
15,000 KB
testcase_09 AC 82 ms
15,044 KB
testcase_10 AC 82 ms
15,032 KB
testcase_11 AC 84 ms
15,116 KB
testcase_12 AC 83 ms
15,216 KB
testcase_13 AC 196 ms
40,560 KB
testcase_14 AC 187 ms
38,504 KB
testcase_15 AC 96 ms
17,632 KB
testcase_16 AC 133 ms
26,572 KB
testcase_17 AC 206 ms
43,036 KB
testcase_18 AC 149 ms
30,060 KB
testcase_19 AC 241 ms
46,460 KB
testcase_20 AC 174 ms
34,512 KB
testcase_21 AC 149 ms
30,360 KB
testcase_22 AC 193 ms
39,820 KB
testcase_23 AC 246 ms
47,008 KB
testcase_24 AC 247 ms
47,168 KB
testcase_25 AC 246 ms
47,200 KB
testcase_26 AC 248 ms
47,036 KB
testcase_27 AC 245 ms
47,196 KB
testcase_28 AC 248 ms
46,988 KB
testcase_29 AC 251 ms
47,132 KB
testcase_30 AC 244 ms
47,124 KB
testcase_31 AC 245 ms
47,172 KB
testcase_32 AC 245 ms
47,116 KB
testcase_33 AC 247 ms
47,080 KB
testcase_34 AC 244 ms
47,076 KB
testcase_35 AC 80 ms
15,124 KB
testcase_36 AC 81 ms
15,032 KB
testcase_37 AC 82 ms
15,052 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

S = gets.chomp
cand = S.chars.uniq

if S.count(cand[0]) == 1
  puts [S.index(cand[0]) + 1, cand[0]].join(' ')
else
  puts [S.index(cand[1]) + 1, cand[1]].join(' ')
end
0