結果

問題 No.1362 [Zelkova 8th Tune] Black Sheep
ユーザー ThetaTheta
提出日時 2022-11-22 19:01:47
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 68 ms / 1,000 ms
コード長 296 bytes
コンパイル時間 104 ms
コンパイル使用メモリ 11,744 KB
実行使用メモリ 10,868 KB
最終ジャッジ日時 2023-10-24 11:38:52
合計ジャッジ時間 3,140 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
9,908 KB
testcase_01 AC 28 ms
9,908 KB
testcase_02 AC 29 ms
9,908 KB
testcase_03 AC 29 ms
9,908 KB
testcase_04 AC 29 ms
9,908 KB
testcase_05 AC 29 ms
9,908 KB
testcase_06 AC 28 ms
9,908 KB
testcase_07 AC 29 ms
9,908 KB
testcase_08 AC 27 ms
9,908 KB
testcase_09 AC 28 ms
9,908 KB
testcase_10 AC 30 ms
9,908 KB
testcase_11 AC 29 ms
9,908 KB
testcase_12 AC 28 ms
9,908 KB
testcase_13 AC 64 ms
10,708 KB
testcase_14 AC 60 ms
10,568 KB
testcase_15 AC 33 ms
10,016 KB
testcase_16 AC 43 ms
10,096 KB
testcase_17 AC 65 ms
10,788 KB
testcase_18 AC 47 ms
10,304 KB
testcase_19 AC 66 ms
10,836 KB
testcase_20 AC 52 ms
10,304 KB
testcase_21 AC 49 ms
10,568 KB
testcase_22 AC 61 ms
10,832 KB
testcase_23 AC 68 ms
10,868 KB
testcase_24 AC 67 ms
10,868 KB
testcase_25 AC 67 ms
10,868 KB
testcase_26 AC 67 ms
10,868 KB
testcase_27 AC 67 ms
10,868 KB
testcase_28 AC 67 ms
10,868 KB
testcase_29 AC 68 ms
10,868 KB
testcase_30 AC 68 ms
10,868 KB
testcase_31 AC 68 ms
10,868 KB
testcase_32 AC 68 ms
10,868 KB
testcase_33 AC 67 ms
10,868 KB
testcase_34 AC 31 ms
10,868 KB
testcase_35 AC 28 ms
9,908 KB
testcase_36 AC 29 ms
9,908 KB
testcase_37 AC 29 ms
9,908 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    S = input()
    if S[0] != S[1]:
        if S[0] == S[2]:
            print(2, S[1])
        else:
            print(1, S[0])
        return

    for idx, letter in enumerate(S, 1):
        if letter != S[0]:
            print(idx, letter)


if __name__ == "__main__":
    main()
0