結果

問題 No.2649 [Cherry 6th Tune C] Anthem Flower
ユーザー shogo314
提出日時 2024-02-24 01:33:10
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 127 bytes
コンパイル時間 671 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 76,416 KB
最終ジャッジ日時 2024-09-29 09:44:04
合計ジャッジ時間 8,880 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9 WA * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
sys.set_int_max_str_digits(0)
for _ in range(int(input())):
	N,M=map(int,input().split())
	N%=M
	print(N*(N+1)//2%M)
0