結果
問題 |
No.2649 [Cherry 6th Tune C] Anthem Flower
|
ユーザー |
|
提出日時 | 2025-06-12 09:47:02 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 550 ms / 2,000 ms |
コード長 | 177 bytes |
コンパイル時間 | 642 ms |
コンパイル使用メモリ | 12,032 KB |
実行使用メモリ | 13,604 KB |
最終ジャッジ日時 | 2025-06-12 09:47:17 |
合計ジャッジ時間 | 14,479 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 35 |
ソースコード
import sys input = sys.stdin.readline sys.set_int_max_str_digits(10**7) t = int(input()) for i in range(t): n, m = map(int, input().split()) print(n * (n + 1) // 2 % m)