結果

問題 No.1362 [Zelkova 8th Tune] Black Sheep
ユーザー 👑 SPD_9X2SPD_9X2
提出日時 2021-01-22 21:34:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 73 ms / 1,000 ms
コード長 253 bytes
コンパイル時間 573 ms
コンパイル使用メモリ 87,120 KB
実行使用メモリ 76,780 KB
最終ジャッジ日時 2023-08-27 17:45:13
合計ジャッジ時間 4,904 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
71,032 KB
testcase_01 AC 63 ms
71,332 KB
testcase_02 AC 63 ms
71,324 KB
testcase_03 AC 64 ms
71,200 KB
testcase_04 AC 63 ms
71,248 KB
testcase_05 AC 64 ms
71,456 KB
testcase_06 AC 62 ms
71,376 KB
testcase_07 AC 63 ms
71,488 KB
testcase_08 AC 64 ms
71,040 KB
testcase_09 AC 65 ms
71,312 KB
testcase_10 AC 63 ms
71,216 KB
testcase_11 AC 64 ms
71,324 KB
testcase_12 AC 63 ms
71,380 KB
testcase_13 AC 68 ms
76,340 KB
testcase_14 AC 71 ms
76,492 KB
testcase_15 AC 65 ms
75,816 KB
testcase_16 AC 67 ms
76,112 KB
testcase_17 AC 68 ms
76,584 KB
testcase_18 AC 66 ms
76,220 KB
testcase_19 AC 68 ms
76,676 KB
testcase_20 AC 67 ms
76,388 KB
testcase_21 AC 70 ms
76,316 KB
testcase_22 AC 70 ms
76,316 KB
testcase_23 AC 67 ms
76,780 KB
testcase_24 AC 71 ms
76,648 KB
testcase_25 AC 70 ms
76,700 KB
testcase_26 AC 69 ms
76,732 KB
testcase_27 AC 66 ms
76,712 KB
testcase_28 AC 68 ms
76,736 KB
testcase_29 AC 71 ms
76,656 KB
testcase_30 AC 70 ms
76,704 KB
testcase_31 AC 71 ms
76,628 KB
testcase_32 AC 73 ms
76,496 KB
testcase_33 AC 73 ms
76,708 KB
testcase_34 AC 65 ms
72,224 KB
testcase_35 AC 68 ms
71,392 KB
testcase_36 AC 63 ms
71,312 KB
testcase_37 AC 65 ms
71,316 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

"""

"""

import sys
from sys import stdin

S = stdin.readline()[:-1]

if S[0] == S[1]:
    for i in range(len(S)):
        if S[i] != S[0]:
            print (i+1,S[i])
            break

elif S[1] == S[2]:
    print (1,S[0])
else:
    print (2,S[1])
0