結果

問題 No.1362 [Zelkova 8th Tune] Black Sheep
ユーザー miya145592miya145592
提出日時 2023-05-10 03:39:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 107 ms / 1,000 ms
コード長 210 bytes
コンパイル時間 279 ms
コンパイル使用メモリ 87,292 KB
実行使用メモリ 77,548 KB
最終ジャッジ日時 2023-08-17 13:49:34
合計ジャッジ時間 5,603 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,384 KB
testcase_01 AC 68 ms
71,404 KB
testcase_02 AC 69 ms
71,404 KB
testcase_03 AC 68 ms
71,572 KB
testcase_04 AC 73 ms
71,316 KB
testcase_05 AC 68 ms
71,312 KB
testcase_06 AC 68 ms
71,388 KB
testcase_07 AC 69 ms
71,536 KB
testcase_08 AC 69 ms
71,320 KB
testcase_09 AC 69 ms
71,084 KB
testcase_10 AC 68 ms
71,592 KB
testcase_11 AC 69 ms
71,424 KB
testcase_12 AC 69 ms
71,168 KB
testcase_13 AC 103 ms
77,064 KB
testcase_14 AC 99 ms
77,200 KB
testcase_15 AC 73 ms
75,932 KB
testcase_16 AC 88 ms
76,952 KB
testcase_17 AC 99 ms
77,232 KB
testcase_18 AC 87 ms
76,616 KB
testcase_19 AC 98 ms
77,192 KB
testcase_20 AC 88 ms
77,152 KB
testcase_21 AC 90 ms
77,268 KB
testcase_22 AC 101 ms
77,516 KB
testcase_23 AC 106 ms
77,216 KB
testcase_24 AC 93 ms
77,284 KB
testcase_25 AC 101 ms
77,548 KB
testcase_26 AC 101 ms
77,228 KB
testcase_27 AC 107 ms
77,192 KB
testcase_28 AC 105 ms
77,264 KB
testcase_29 AC 97 ms
77,192 KB
testcase_30 AC 98 ms
77,272 KB
testcase_31 AC 97 ms
77,272 KB
testcase_32 AC 100 ms
77,200 KB
testcase_33 AC 93 ms
76,852 KB
testcase_34 AC 106 ms
77,244 KB
testcase_35 AC 69 ms
71,212 KB
testcase_36 AC 69 ms
71,452 KB
testcase_37 AC 70 ms
71,360 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
d = dict()
c = dict()
for i, s in enumerate(S):
    if s not in d:
        d[s] = i
        c[s] = 0
    c[s] += 1
for cc, dd in zip(c, d):
    if c[cc]==1:
        print(d[dd]+1, dd)
        exit()
0