結果
問題 |
No.3110 Like CPCTF?
|
ユーザー |
![]() |
提出日時 | 2025-04-19 15:43:38 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 212 ms / 2,000 ms |
コード長 | 242 bytes |
コンパイル時間 | 1,019 ms |
コンパイル使用メモリ | 82,456 KB |
実行使用メモリ | 76,560 KB |
最終ジャッジ日時 | 2025-04-19 15:43:42 |
合計ジャッジ時間 | 3,915 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 |
ソースコード
n=int(input()) s=input() c=0 for p1 in range(n): for p2 in range(n): for p3 in range(n): for p4 in range(n): for p5 in range(n): if p1<p2<p3<p4<p5: c+=s[p1]==s[p3] and len(set([s[p1],s[p2],s[p3],s[p4],s[p5]]))==4 print(c)