結果

問題 No.1362 [Zelkova 8th Tune] Black Sheep
ユーザー lloyzlloyz
提出日時 2022-09-03 00:02:49
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 127 ms / 1,000 ms
コード長 236 bytes
コンパイル時間 119 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 15,184 KB
最終ジャッジ日時 2024-04-27 23:27:22
合計ジャッジ時間 4,401 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
10,496 KB
testcase_01 AC 25 ms
10,496 KB
testcase_02 AC 25 ms
10,496 KB
testcase_03 AC 26 ms
10,496 KB
testcase_04 AC 27 ms
10,496 KB
testcase_05 AC 29 ms
10,496 KB
testcase_06 AC 28 ms
10,624 KB
testcase_07 AC 29 ms
10,624 KB
testcase_08 AC 27 ms
10,624 KB
testcase_09 AC 27 ms
10,624 KB
testcase_10 AC 28 ms
10,624 KB
testcase_11 AC 27 ms
10,496 KB
testcase_12 AC 28 ms
10,496 KB
testcase_13 AC 80 ms
14,428 KB
testcase_14 AC 67 ms
14,304 KB
testcase_15 AC 35 ms
11,008 KB
testcase_16 AC 45 ms
12,384 KB
testcase_17 AC 109 ms
14,880 KB
testcase_18 AC 68 ms
13,024 KB
testcase_19 AC 114 ms
14,964 KB
testcase_20 AC 79 ms
13,500 KB
testcase_21 AC 63 ms
13,168 KB
testcase_22 AC 70 ms
14,212 KB
testcase_23 AC 80 ms
15,144 KB
testcase_24 AC 120 ms
15,120 KB
testcase_25 AC 102 ms
15,116 KB
testcase_26 AC 102 ms
15,140 KB
testcase_27 AC 72 ms
15,076 KB
testcase_28 AC 81 ms
15,184 KB
testcase_29 AC 109 ms
15,076 KB
testcase_30 AC 122 ms
15,148 KB
testcase_31 AC 115 ms
15,072 KB
testcase_32 AC 108 ms
15,140 KB
testcase_33 AC 127 ms
15,068 KB
testcase_34 AC 66 ms
15,056 KB
testcase_35 AC 26 ms
10,624 KB
testcase_36 AC 26 ms
10,624 KB
testcase_37 AC 24 ms
10,624 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter

S = list(input())

n = len(S)
counter = Counter(S)
ans = ''
for v, cnt in counter.items():
    if cnt == 1:
        ans = v
for i in range(n):
    if S[i] == ans:
        print(i + 1, ans)
        break
0