結果

問題 No.1362 [Zelkova 8th Tune] Black Sheep
ユーザー hiragnhiragn
提出日時 2022-11-24 09:09:36
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 96 ms / 1,000 ms
コード長 272 bytes
コンパイル時間 311 ms
コンパイル使用メモリ 11,720 KB
実行使用メモリ 30,604 KB
最終ジャッジ日時 2023-10-26 01:09:21
合計ジャッジ時間 5,406 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
9,892 KB
testcase_01 AC 29 ms
9,892 KB
testcase_02 AC 29 ms
9,892 KB
testcase_03 AC 29 ms
9,892 KB
testcase_04 AC 30 ms
9,892 KB
testcase_05 AC 29 ms
9,892 KB
testcase_06 AC 29 ms
9,892 KB
testcase_07 AC 29 ms
9,904 KB
testcase_08 AC 29 ms
9,904 KB
testcase_09 AC 29 ms
9,892 KB
testcase_10 AC 30 ms
9,916 KB
testcase_11 AC 29 ms
9,896 KB
testcase_12 AC 30 ms
9,912 KB
testcase_13 AC 84 ms
26,748 KB
testcase_14 AC 80 ms
25,596 KB
testcase_15 AC 35 ms
11,760 KB
testcase_16 AC 54 ms
17,508 KB
testcase_17 AC 89 ms
29,012 KB
testcase_18 AC 61 ms
20,164 KB
testcase_19 AC 92 ms
30,068 KB
testcase_20 AC 68 ms
22,084 KB
testcase_21 AC 64 ms
20,544 KB
testcase_22 AC 81 ms
26,208 KB
testcase_23 AC 94 ms
30,604 KB
testcase_24 AC 95 ms
30,604 KB
testcase_25 AC 93 ms
30,604 KB
testcase_26 AC 95 ms
30,604 KB
testcase_27 AC 94 ms
30,604 KB
testcase_28 AC 95 ms
30,604 KB
testcase_29 AC 95 ms
30,604 KB
testcase_30 AC 94 ms
30,604 KB
testcase_31 AC 94 ms
30,604 KB
testcase_32 AC 95 ms
30,604 KB
testcase_33 AC 96 ms
30,604 KB
testcase_34 AC 96 ms
30,604 KB
testcase_35 AC 29 ms
9,892 KB
testcase_36 AC 30 ms
9,892 KB
testcase_37 AC 29 ms
9,892 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict


def main():
    s = input()
    d = defaultdict(list)
    for i, c in enumerate(s):
        d[c].append(i + 1)

    for c, lst in d.items():
        if len(lst) == 1:
            print(*lst, c)


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