結果

問題 No.1362 [Zelkova 8th Tune] Black Sheep
ユーザー だれだれ
提出日時 2021-01-22 21:22:13
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 80 ms / 1,000 ms
コード長 193 bytes
コンパイル時間 69 ms
コンパイル使用メモリ 10,540 KB
実行使用メモリ 8,964 KB
最終ジャッジ日時 2023-08-27 17:05:04
合計ジャッジ時間 3,112 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
7,844 KB
testcase_01 AC 14 ms
7,780 KB
testcase_02 AC 14 ms
7,788 KB
testcase_03 AC 14 ms
7,780 KB
testcase_04 AC 14 ms
7,872 KB
testcase_05 AC 14 ms
7,868 KB
testcase_06 AC 14 ms
7,776 KB
testcase_07 AC 14 ms
7,848 KB
testcase_08 AC 15 ms
7,916 KB
testcase_09 AC 15 ms
7,952 KB
testcase_10 AC 15 ms
7,832 KB
testcase_11 AC 14 ms
7,872 KB
testcase_12 AC 14 ms
7,784 KB
testcase_13 AC 67 ms
8,732 KB
testcase_14 AC 65 ms
8,800 KB
testcase_15 AC 20 ms
8,072 KB
testcase_16 AC 38 ms
8,340 KB
testcase_17 AC 73 ms
8,944 KB
testcase_18 AC 48 ms
8,436 KB
testcase_19 AC 75 ms
8,844 KB
testcase_20 AC 53 ms
8,560 KB
testcase_21 AC 46 ms
8,540 KB
testcase_22 AC 65 ms
8,748 KB
testcase_23 AC 79 ms
8,900 KB
testcase_24 AC 78 ms
8,884 KB
testcase_25 AC 77 ms
8,848 KB
testcase_26 AC 80 ms
8,860 KB
testcase_27 AC 78 ms
8,936 KB
testcase_28 AC 77 ms
8,860 KB
testcase_29 AC 78 ms
8,900 KB
testcase_30 AC 78 ms
8,924 KB
testcase_31 AC 79 ms
8,960 KB
testcase_32 AC 77 ms
8,932 KB
testcase_33 AC 78 ms
8,964 KB
testcase_34 AC 16 ms
8,848 KB
testcase_35 AC 14 ms
7,904 KB
testcase_36 AC 14 ms
7,932 KB
testcase_37 AC 13 ms
7,844 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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