結果

問題 No.1362 [Zelkova 8th Tune] Black Sheep
ユーザー trineutrontrineutron
提出日時 2021-02-08 01:34:50
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 190 ms / 1,000 ms
コード長 248 bytes
コンパイル時間 161 ms
コンパイル使用メモリ 10,668 KB
実行使用メモリ 9,016 KB
最終ジャッジ日時 2023-09-18 03:50:09
合計ジャッジ時間 6,480 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,776 KB
testcase_01 AC 15 ms
7,776 KB
testcase_02 AC 15 ms
7,940 KB
testcase_03 AC 15 ms
7,900 KB
testcase_04 AC 16 ms
7,788 KB
testcase_05 AC 15 ms
7,768 KB
testcase_06 AC 16 ms
7,852 KB
testcase_07 AC 16 ms
7,960 KB
testcase_08 AC 15 ms
7,776 KB
testcase_09 AC 15 ms
7,832 KB
testcase_10 AC 15 ms
7,760 KB
testcase_11 AC 16 ms
7,864 KB
testcase_12 AC 16 ms
7,792 KB
testcase_13 AC 161 ms
8,712 KB
testcase_14 AC 139 ms
8,720 KB
testcase_15 AC 30 ms
8,104 KB
testcase_16 AC 78 ms
8,220 KB
testcase_17 AC 173 ms
8,836 KB
testcase_18 AC 99 ms
8,328 KB
testcase_19 AC 175 ms
8,812 KB
testcase_20 AC 120 ms
8,648 KB
testcase_21 AC 101 ms
8,432 KB
testcase_22 AC 146 ms
8,652 KB
testcase_23 AC 189 ms
8,840 KB
testcase_24 AC 178 ms
8,968 KB
testcase_25 AC 188 ms
8,960 KB
testcase_26 AC 189 ms
8,956 KB
testcase_27 AC 180 ms
8,956 KB
testcase_28 AC 190 ms
8,920 KB
testcase_29 AC 183 ms
8,932 KB
testcase_30 AC 180 ms
8,920 KB
testcase_31 AC 179 ms
8,896 KB
testcase_32 AC 179 ms
8,972 KB
testcase_33 AC 178 ms
8,852 KB
testcase_34 AC 179 ms
9,016 KB
testcase_35 AC 15 ms
7,884 KB
testcase_36 AC 15 ms
7,968 KB
testcase_37 AC 15 ms
7,968 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()
d = {}
for c in s:
    if c not in d:
        d[c] = 0
    d[c] += 1
ans_c = None
for k, v in d.items():
    if v == 1:
        ans_c = k
ans_i = 0
for i in range(len(s)):
    if s[i] == ans_c:
        ans_i = i + 1
print(ans_i, ans_c)
0