結果

問題 No.1362 [Zelkova 8th Tune] Black Sheep
ユーザー 👑 KazunKazun
提出日時 2020-11-24 04:13:58
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 84 ms / 1,000 ms
コード長 176 bytes
コンパイル時間 301 ms
コンパイル使用メモリ 87,272 KB
実行使用メモリ 76,908 KB
最終ジャッジ日時 2023-10-01 00:46:43
合計ジャッジ時間 4,761 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,436 KB
testcase_01 AC 74 ms
71,012 KB
testcase_02 AC 75 ms
70,896 KB
testcase_03 AC 71 ms
71,228 KB
testcase_04 AC 72 ms
71,360 KB
testcase_05 AC 72 ms
70,956 KB
testcase_06 AC 71 ms
71,252 KB
testcase_07 AC 70 ms
71,252 KB
testcase_08 AC 71 ms
71,256 KB
testcase_09 AC 69 ms
71,260 KB
testcase_10 AC 70 ms
71,204 KB
testcase_11 AC 71 ms
71,016 KB
testcase_12 AC 72 ms
71,380 KB
testcase_13 AC 75 ms
76,560 KB
testcase_14 AC 73 ms
76,576 KB
testcase_15 AC 71 ms
75,320 KB
testcase_16 AC 73 ms
75,932 KB
testcase_17 AC 78 ms
76,372 KB
testcase_18 AC 76 ms
76,196 KB
testcase_19 AC 78 ms
76,648 KB
testcase_20 AC 76 ms
75,908 KB
testcase_21 AC 75 ms
76,076 KB
testcase_22 AC 75 ms
76,236 KB
testcase_23 AC 79 ms
76,820 KB
testcase_24 AC 84 ms
76,908 KB
testcase_25 AC 79 ms
76,632 KB
testcase_26 AC 80 ms
76,492 KB
testcase_27 AC 74 ms
76,556 KB
testcase_28 AC 76 ms
76,604 KB
testcase_29 AC 82 ms
76,580 KB
testcase_30 AC 80 ms
76,528 KB
testcase_31 AC 82 ms
76,568 KB
testcase_32 AC 81 ms
76,680 KB
testcase_33 AC 82 ms
76,908 KB
testcase_34 AC 72 ms
72,360 KB
testcase_35 AC 71 ms
70,984 KB
testcase_36 AC 70 ms
71,316 KB
testcase_37 AC 70 ms
71,288 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#別解3
S=input()

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

if i==0:
    j=2
else:
    j=0

if S[j]==S[i]:
    print(i+2,S[i+1])
else:
    print(i+1,S[i])
0