結果
| 問題 |
No.2649 [Cherry 6th Tune C] Anthem Flower
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-06-12 09:34:57 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 121 bytes |
| コンパイル時間 | 1,395 ms |
| コンパイル使用メモリ | 82,816 KB |
| 実行使用メモリ | 76,672 KB |
| 最終ジャッジ日時 | 2025-06-12 09:35:09 |
| 合計ジャッジ時間 | 10,703 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)