結果

問題 No.2649 [Cherry 6th Tune C] Anthem Flower
ユーザー 👑 Kazun
提出日時 2023-07-04 00:05:44
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 266 bytes
コンパイル時間 408 ms
コンパイル使用メモリ 82,256 KB
実行使用メモリ 83,140 KB
最終ジャッジ日時 2024-09-29 04:34:56
合計ジャッジ時間 4,247 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14 RE * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
    N, M = map(int,input().split())

    return (N * (N+1)) // 2 % M

#==================================================
import sys
input=sys.stdin.readline
write=sys.stdout.write

T=int(input())
write("\n".join(map(str, [solve() for _ in range(T)])))
0