結果
問題 |
No.3110 Like CPCTF?
|
ユーザー |
|
提出日時 | 2025-04-18 20:17:03 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 93 ms / 2,000 ms |
コード長 | 148 bytes |
コンパイル時間 | 466 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 75,944 KB |
最終ジャッジ日時 | 2025-04-18 20:17:05 |
合計ジャッジ時間 | 2,296 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 |
ソースコード
from itertools import combinations N=int(input()) S=input() ans=0 for s in combinations(S,5): if len(set(s))==4 and s[0]==s[2]: ans+=1 print(ans)