結果
| 問題 | No.2649 [Cherry 6th Tune C] Anthem Flower |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-03-10 19:27:37 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 333 bytes |
| コンパイル時間 | 346 ms |
| コンパイル使用メモリ | 82,944 KB |
| 実行使用メモリ | 78,464 KB |
| 最終ジャッジ日時 | 2024-09-29 21:46:02 |
| 合計ジャッジ時間 | 9,117 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 RE * 21 |
ソースコード
# import pypyjit
# pypyjit.set_param("max_unroll_recursion=-1")
from collections import *
from functools import *
from itertools import *
from heapq import *
import sys, math,random,time
# input = sys.stdin.readline
def answer():
N,M = map(int,input().split())
print(N*(N+1)//2%M)
for _ in range(int(input())):
answer()