結果
| 問題 | No.2649 [Cherry 6th Tune C] Anthem Flower |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-02-23 22:44:01 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 195 bytes |
| 記録 | |
| コンパイル時間 | 708 ms |
| コンパイル使用メモリ | 20,568 KB |
| 実行使用メモリ | 20,648 KB |
| 最終ジャッジ日時 | 2026-04-15 18:01:43 |
| 合計ジャッジ時間 | 14,414 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 RE * 21 |
ソースコード
T = int(input())
for _ in range(T):
N, M = map(int, input().split())
s = N
t = N+1
if s%2 == 0:
s //= 2
else:
t //= 2
s %= M
t %= M
print((s*t)%M)