結果

問題 No.1362 [Zelkova 8th Tune] Black Sheep
ユーザー tobusakanatobusakana
提出日時 2022-11-27 22:03:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 43 ms / 1,000 ms
コード長 171 bytes
コンパイル時間 142 ms
コンパイル使用メモリ 82,160 KB
実行使用メモリ 61,304 KB
最終ジャッジ日時 2024-04-15 03:25:31
合計ジャッジ時間 3,300 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
52,556 KB
testcase_01 AC 35 ms
51,752 KB
testcase_02 AC 35 ms
53,324 KB
testcase_03 AC 35 ms
52,356 KB
testcase_04 AC 35 ms
53,308 KB
testcase_05 AC 36 ms
52,304 KB
testcase_06 AC 34 ms
52,816 KB
testcase_07 AC 34 ms
52,280 KB
testcase_08 AC 35 ms
52,176 KB
testcase_09 AC 35 ms
52,084 KB
testcase_10 AC 38 ms
52,112 KB
testcase_11 AC 34 ms
52,948 KB
testcase_12 AC 36 ms
52,340 KB
testcase_13 AC 42 ms
60,756 KB
testcase_14 AC 40 ms
59,820 KB
testcase_15 AC 40 ms
59,436 KB
testcase_16 AC 40 ms
59,548 KB
testcase_17 AC 42 ms
61,304 KB
testcase_18 AC 40 ms
58,976 KB
testcase_19 AC 40 ms
61,092 KB
testcase_20 AC 39 ms
59,612 KB
testcase_21 AC 39 ms
59,440 KB
testcase_22 AC 41 ms
60,136 KB
testcase_23 AC 40 ms
60,588 KB
testcase_24 AC 43 ms
60,184 KB
testcase_25 AC 42 ms
60,436 KB
testcase_26 AC 41 ms
60,644 KB
testcase_27 AC 40 ms
60,248 KB
testcase_28 AC 41 ms
60,572 KB
testcase_29 AC 43 ms
61,132 KB
testcase_30 AC 41 ms
60,760 KB
testcase_31 AC 43 ms
60,684 KB
testcase_32 AC 43 ms
60,592 KB
testcase_33 AC 43 ms
60,448 KB
testcase_34 AC 38 ms
54,888 KB
testcase_35 AC 36 ms
52,212 KB
testcase_36 AC 34 ms
52,356 KB
testcase_37 AC 35 ms
53,156 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
cnt0 = S.count(S[0])

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