結果
問題 |
No.3110 Like CPCTF?
|
ユーザー |
👑 ![]() |
提出日時 | 2025-04-18 23:06:33 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 71 ms / 2,000 ms |
コード長 | 143 bytes |
コンパイル時間 | 700 ms |
コンパイル使用メモリ | 81,476 KB |
実行使用メモリ | 76,160 KB |
最終ジャッジ日時 | 2025-04-18 23:06:36 |
合計ジャッジ時間 | 2,096 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 |
ソースコード
from itertools import combinations N = int(input()) S = input() print(sum(1 for a in combinations(S, 5) if a[0] == a[2] and len(set(a)) == 4))