結果
| 問題 |
No.3145 Astral Parentheses Sequence
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2025-03-26 21:27:38 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 36 ms / 2,000 ms |
| コード長 | 107 bytes |
| コンパイル時間 | 193 ms |
| コンパイル使用メモリ | 12,288 KB |
| 実行使用メモリ | 10,496 KB |
| 最終ジャッジ日時 | 2025-03-26 23:39:58 |
| 合計ジャッジ時間 | 3,310 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 45 |
コンパイルメッセージ
Main.py:5: SyntaxWarning: invalid decimal literal print(0if N%3 else a//(2*n+1)%M)
ソースコード
N,M=map(int,input().split()) n=N//3 a=1 for i in range(n):a=a*(N-i)//(i+1) print(0if N%3 else a//(2*n+1)%M)