結果
| 問題 | No.3110 Like CPCTF? |
| コンテスト | |
| ユーザー |
tatyam
|
| 提出日時 | 2025-04-18 23:06:33 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 77 ms / 2,000 ms |
| コード長 | 143 bytes |
| 記録 | |
| コンパイル時間 | 701 ms |
| コンパイル使用メモリ | 95,980 KB |
| 実行使用メモリ | 83,840 KB |
| 最終ジャッジ日時 | 2026-07-09 20:01:50 |
| 合計ジャッジ時間 | 3,188 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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))
tatyam