結果
問題 | No.3145 Astral Parentheses Sequence |
ユーザー |
![]() |
提出日時 | 2025-05-08 05:32:47 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 36 ms / 2,000 ms |
コード長 | 141 bytes |
コンパイル時間 | 739 ms |
コンパイル使用メモリ | 81,744 KB |
実行使用メモリ | 53,676 KB |
最終ジャッジ日時 | 2025-05-08 05:32:51 |
合計ジャッジ時間 | 4,365 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 45 |
ソースコード
from math import comb N, M = map(int, input().split()) if N % 3 != 0: print(0) else: print(comb(N, N // 3) // (N * 2 // 3 + 1) % M)