結果

問題 No.1362 [Zelkova 8th Tune] Black Sheep
ユーザー 杉山新杉山新
提出日時 2021-02-07 09:47:28
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 54 ms / 1,000 ms
コード長 186 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 10,452 KB
実行使用メモリ 9,008 KB
最終ジャッジ日時 2023-09-17 00:16:49
合計ジャッジ時間 2,936 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,752 KB
testcase_01 AC 15 ms
7,804 KB
testcase_02 AC 15 ms
7,812 KB
testcase_03 AC 15 ms
7,776 KB
testcase_04 AC 15 ms
7,732 KB
testcase_05 AC 15 ms
7,732 KB
testcase_06 AC 15 ms
7,804 KB
testcase_07 AC 15 ms
7,828 KB
testcase_08 AC 15 ms
7,836 KB
testcase_09 AC 16 ms
7,732 KB
testcase_10 AC 16 ms
7,804 KB
testcase_11 AC 15 ms
7,896 KB
testcase_12 AC 16 ms
7,728 KB
testcase_13 AC 25 ms
8,672 KB
testcase_14 AC 19 ms
8,660 KB
testcase_15 AC 19 ms
8,096 KB
testcase_16 AC 18 ms
8,232 KB
testcase_17 AC 39 ms
8,820 KB
testcase_18 AC 27 ms
8,372 KB
testcase_19 AC 45 ms
8,916 KB
testcase_20 AC 33 ms
8,652 KB
testcase_21 AC 23 ms
8,376 KB
testcase_22 AC 18 ms
8,700 KB
testcase_23 AC 23 ms
8,828 KB
testcase_24 AC 53 ms
8,832 KB
testcase_25 AC 38 ms
9,008 KB
testcase_26 AC 38 ms
8,788 KB
testcase_27 AC 21 ms
8,840 KB
testcase_28 AC 27 ms
8,912 KB
testcase_29 AC 47 ms
8,864 KB
testcase_30 AC 45 ms
8,784 KB
testcase_31 AC 49 ms
8,848 KB
testcase_32 AC 45 ms
8,908 KB
testcase_33 AC 54 ms
8,964 KB
testcase_34 AC 18 ms
8,972 KB
testcase_35 AC 16 ms
7,764 KB
testcase_36 AC 16 ms
7,808 KB
testcase_37 AC 16 ms
7,728 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
s1 = S[0]
s2 = ""

for i in S:
    if i != s1:
        s2 = i
        break
if S.count(s1) == 1:
    print(S.index(s1)+1,s1)

if S.count(s2) == 1:
    print(S.index(s2)+1,s2)
0