結果

問題 No.1362 [Zelkova 8th Tune] Black Sheep
ユーザー 👑 KazunKazun
提出日時 2020-10-18 03:05:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 88 ms / 1,000 ms
コード長 135 bytes
コンパイル時間 282 ms
コンパイル使用メモリ 87,292 KB
実行使用メモリ 77,296 KB
最終ジャッジ日時 2023-10-01 00:46:10
合計ジャッジ時間 4,849 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,388 KB
testcase_01 AC 71 ms
71,336 KB
testcase_02 AC 72 ms
71,512 KB
testcase_03 AC 72 ms
71,132 KB
testcase_04 AC 77 ms
71,492 KB
testcase_05 AC 72 ms
71,324 KB
testcase_06 AC 71 ms
71,328 KB
testcase_07 AC 72 ms
71,464 KB
testcase_08 AC 71 ms
71,520 KB
testcase_09 AC 71 ms
71,636 KB
testcase_10 AC 70 ms
71,320 KB
testcase_11 AC 70 ms
71,284 KB
testcase_12 AC 70 ms
71,500 KB
testcase_13 AC 82 ms
76,924 KB
testcase_14 AC 84 ms
77,204 KB
testcase_15 AC 74 ms
75,760 KB
testcase_16 AC 77 ms
76,224 KB
testcase_17 AC 80 ms
76,696 KB
testcase_18 AC 79 ms
76,280 KB
testcase_19 AC 82 ms
76,824 KB
testcase_20 AC 82 ms
76,656 KB
testcase_21 AC 79 ms
76,368 KB
testcase_22 AC 82 ms
77,204 KB
testcase_23 AC 84 ms
76,812 KB
testcase_24 AC 78 ms
76,784 KB
testcase_25 AC 83 ms
77,184 KB
testcase_26 AC 82 ms
77,064 KB
testcase_27 AC 86 ms
77,296 KB
testcase_28 AC 86 ms
77,136 KB
testcase_29 AC 82 ms
76,820 KB
testcase_30 AC 84 ms
76,892 KB
testcase_31 AC 81 ms
76,756 KB
testcase_32 AC 82 ms
76,856 KB
testcase_33 AC 80 ms
76,688 KB
testcase_34 AC 88 ms
76,760 KB
testcase_35 AC 73 ms
71,128 KB
testcase_36 AC 70 ms
71,084 KB
testcase_37 AC 70 ms
71,468 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#別解

S=input()
a=S[0]
T=0

for x in S:
    if a!=x:
        T+=1
        b=x

if T==1:
    s=b
else:
    s=a

print(S.index(s)+1,s)
0