結果
| 問題 | 
                            No.3110 Like CPCTF?
                             | 
                    
| コンテスト | |
| ユーザー | 
                             sasa8uyauya
                         | 
                    
| 提出日時 | 2025-04-19 15:42:41 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 237 bytes | 
| コンパイル時間 | 661 ms | 
| コンパイル使用メモリ | 82,248 KB | 
| 実行使用メモリ | 76,512 KB | 
| 最終ジャッジ日時 | 2025-04-19 15:42:45 | 
| 合計ジャッジ時間 | 3,320 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 WA * 2 | 
| other | AC * 6 WA * 10 | 
ソースコード
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([s[p1],s[p2],s[p3],s[p4],s[p5]])==4 print(c)
            
sasa8uyauya