結果

問題 No.1362 [Zelkova 8th Tune] Black Sheep
ユーザー 👑 KazunKazun
提出日時 2020-11-24 04:25:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 83 ms / 1,000 ms
コード長 194 bytes
コンパイル時間 278 ms
コンパイル使用メモリ 87,208 KB
実行使用メモリ 76,736 KB
最終ジャッジ日時 2023-10-01 00:45:40
合計ジャッジ時間 6,092 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,100 KB
testcase_01 AC 74 ms
71,116 KB
testcase_02 AC 78 ms
70,948 KB
testcase_03 AC 75 ms
71,208 KB
testcase_04 AC 72 ms
70,836 KB
testcase_05 AC 72 ms
70,988 KB
testcase_06 AC 70 ms
71,208 KB
testcase_07 AC 75 ms
71,108 KB
testcase_08 AC 78 ms
71,268 KB
testcase_09 AC 75 ms
71,112 KB
testcase_10 AC 73 ms
71,140 KB
testcase_11 AC 73 ms
70,988 KB
testcase_12 AC 77 ms
71,116 KB
testcase_13 AC 80 ms
76,264 KB
testcase_14 AC 79 ms
76,224 KB
testcase_15 AC 75 ms
75,484 KB
testcase_16 AC 77 ms
75,748 KB
testcase_17 AC 78 ms
76,600 KB
testcase_18 AC 77 ms
75,928 KB
testcase_19 AC 81 ms
76,472 KB
testcase_20 AC 79 ms
75,788 KB
testcase_21 AC 80 ms
75,956 KB
testcase_22 AC 79 ms
76,564 KB
testcase_23 AC 79 ms
76,460 KB
testcase_24 AC 81 ms
76,640 KB
testcase_25 AC 83 ms
76,644 KB
testcase_26 AC 81 ms
76,460 KB
testcase_27 AC 79 ms
76,448 KB
testcase_28 AC 79 ms
76,548 KB
testcase_29 AC 78 ms
76,736 KB
testcase_30 AC 79 ms
76,416 KB
testcase_31 AC 79 ms
76,316 KB
testcase_32 AC 79 ms
76,424 KB
testcase_33 AC 79 ms
76,516 KB
testcase_34 AC 73 ms
72,256 KB
testcase_35 AC 74 ms
71,208 KB
testcase_36 AC 72 ms
71,140 KB
testcase_37 AC 72 ms
71,004 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#別解4
S=input()

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