結果

問題 No.1362 [Zelkova 8th Tune] Black Sheep
ユーザー ygd.ygd.
提出日時 2021-06-16 00:07:29
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 127 ms / 1,000 ms
コード長 343 bytes
コンパイル時間 276 ms
コンパイル使用メモリ 87,132 KB
実行使用メモリ 78,352 KB
最終ジャッジ日時 2023-08-27 21:11:28
合計ジャッジ時間 6,305 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 89 ms
71,660 KB
testcase_01 AC 89 ms
71,592 KB
testcase_02 AC 89 ms
71,444 KB
testcase_03 AC 89 ms
71,552 KB
testcase_04 AC 88 ms
71,668 KB
testcase_05 AC 88 ms
71,724 KB
testcase_06 AC 88 ms
71,556 KB
testcase_07 AC 88 ms
71,612 KB
testcase_08 AC 90 ms
71,808 KB
testcase_09 AC 89 ms
71,544 KB
testcase_10 AC 88 ms
71,580 KB
testcase_11 AC 88 ms
71,660 KB
testcase_12 AC 88 ms
71,540 KB
testcase_13 AC 127 ms
77,672 KB
testcase_14 AC 116 ms
77,076 KB
testcase_15 AC 96 ms
76,696 KB
testcase_16 AC 106 ms
76,904 KB
testcase_17 AC 121 ms
77,984 KB
testcase_18 AC 108 ms
76,980 KB
testcase_19 AC 120 ms
77,892 KB
testcase_20 AC 111 ms
77,176 KB
testcase_21 AC 110 ms
77,000 KB
testcase_22 AC 118 ms
77,736 KB
testcase_23 AC 123 ms
77,864 KB
testcase_24 AC 121 ms
77,928 KB
testcase_25 AC 121 ms
78,352 KB
testcase_26 AC 122 ms
77,884 KB
testcase_27 AC 121 ms
77,948 KB
testcase_28 AC 123 ms
78,248 KB
testcase_29 AC 122 ms
78,068 KB
testcase_30 AC 123 ms
77,832 KB
testcase_31 AC 123 ms
78,196 KB
testcase_32 AC 123 ms
78,128 KB
testcase_33 AC 124 ms
78,068 KB
testcase_34 AC 122 ms
77,968 KB
testcase_35 AC 89 ms
71,708 KB
testcase_36 AC 89 ms
71,664 KB
testcase_37 AC 89 ms
71,628 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict

def main():
    S = str(input())
    dic = defaultdict(int)
    for s in S:
        dic[s] += 1

    for a in dic:
        if dic[a] == 1:
            t = a
            break
    for i in range(len(S)):
        if S[i] == t:
            print(str(i+1) + " " + str(t))

if __name__ == '__main__':
    main()
0