結果
問題 |
No.2419 MMA文字列2
|
ユーザー |
|
提出日時 | 2023-08-12 15:11:02 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 268 bytes |
コンパイル時間 | 397 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 25,292 KB |
最終ジャッジ日時 | 2024-11-20 00:05:51 |
合計ジャッジ時間 | 57,358 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 4 WA * 8 TLE * 18 |
ソースコード
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)