結果
| 問題 | No.2419 MMA文字列2 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-08-12 15:11:02 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 268 bytes |
| 記録 | |
| コンパイル時間 | 913 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 21,632 KB |
| 最終ジャッジ日時 | 2026-05-14 03:33:08 |
| 合計ジャッジ時間 | 5,639 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 3 WA * 7 TLE * 1 -- * 19 |
ソースコード
s = input()
dc = set((k for k in s))
c = 0
for _ in range(len(s)):
t = s[0]
s = s[1:]
n = s.count(t) + 1
if n > 1:
n = s.index(t)
k = s[n:]
for i in dc:
if i != t and i in k:
c += k.count(i)
print(c)