結果
| 問題 | No.2649 [Cherry 6th Tune C] Anthem Flower |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-06-12 09:34:57 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 121 bytes |
| 記録 | |
| コンパイル時間 | 228 ms |
| コンパイル使用メモリ | 95,472 KB |
| 実行使用メモリ | 93,732 KB |
| 最終ジャッジ日時 | 2026-07-11 07:34:09 |
| 合計ジャッジ時間 | 10,072 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 RE * 21 |
ソースコード
t = int(input())
for i in range(t):
n, m = map(int, input().split())
ans = n * (n + 1) // 2
print(ans % m)