結果

問題 No.1362 [Zelkova 8th Tune] Black Sheep
ユーザー paruf4paruf4
提出日時 2021-01-22 22:09:50
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 118 ms / 1,000 ms
コード長 221 bytes
コンパイル時間 81 ms
コンパイル使用メモリ 10,704 KB
実行使用メモリ 9,432 KB
最終ジャッジ日時 2023-08-27 19:26:17
合計ジャッジ時間 4,156 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
8,328 KB
testcase_01 AC 19 ms
8,384 KB
testcase_02 AC 19 ms
8,320 KB
testcase_03 AC 19 ms
8,420 KB
testcase_04 AC 19 ms
8,420 KB
testcase_05 AC 17 ms
8,392 KB
testcase_06 AC 18 ms
8,408 KB
testcase_07 AC 19 ms
8,412 KB
testcase_08 AC 17 ms
8,420 KB
testcase_09 AC 19 ms
8,340 KB
testcase_10 AC 17 ms
8,384 KB
testcase_11 AC 18 ms
8,472 KB
testcase_12 AC 18 ms
8,452 KB
testcase_13 AC 102 ms
9,088 KB
testcase_14 AC 95 ms
9,432 KB
testcase_15 AC 27 ms
8,600 KB
testcase_16 AC 56 ms
8,716 KB
testcase_17 AC 109 ms
9,156 KB
testcase_18 AC 69 ms
8,996 KB
testcase_19 AC 116 ms
9,224 KB
testcase_20 AC 82 ms
9,152 KB
testcase_21 AC 71 ms
8,812 KB
testcase_22 AC 100 ms
9,120 KB
testcase_23 AC 118 ms
9,232 KB
testcase_24 AC 115 ms
9,232 KB
testcase_25 AC 115 ms
9,328 KB
testcase_26 AC 117 ms
9,264 KB
testcase_27 AC 118 ms
9,320 KB
testcase_28 AC 117 ms
9,264 KB
testcase_29 AC 114 ms
9,260 KB
testcase_30 AC 118 ms
9,288 KB
testcase_31 AC 116 ms
9,232 KB
testcase_32 AC 116 ms
9,324 KB
testcase_33 AC 117 ms
9,252 KB
testcase_34 AC 116 ms
9,232 KB
testcase_35 AC 18 ms
8,412 KB
testcase_36 AC 17 ms
8,384 KB
testcase_37 AC 17 ms
8,400 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
s = input()
c = Counter(s)
mn = 10**18
mnc = ''
for k, v in c.items():
    if v == 1:
        mnc = k
res = -1
for i in range(len(s)):
    if s[i] == mnc:
        res = i+1
print(res, mnc)
0