結果
問題 |
No.2649 [Cherry 6th Tune C] Anthem Flower
|
ユーザー |
|
提出日時 | 2024-02-23 23:46:20 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 151 bytes |
コンパイル時間 | 1,109 ms |
コンパイル使用メモリ | 82,128 KB |
実行使用メモリ | 76,288 KB |
最終ジャッジ日時 | 2024-09-29 09:13:57 |
合計ジャッジ時間 | 9,056 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 WA * 25 |
ソースコード
import sys;sys.set_int_max_str_digits(0) for _ in range(int(input())): n,m=map(int,input().split()) n1=n%m n2=(n+1)%m s=(n1*n2//2)%m print(s)