結果
| 問題 |
No.2649 [Cherry 6th Tune C] Anthem Flower
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-03-10 19:33:10 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 644 ms / 2,000 ms |
| コード長 | 367 bytes |
| コンパイル時間 | 323 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 85,120 KB |
| 最終ジャッジ日時 | 2024-09-29 21:46:21 |
| 合計ジャッジ時間 | 10,384 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 35 |
ソースコード
# 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
sys.set_int_max_str_digits(10**7)
def answer():
N,M = map(int,input().split())
print(N*(N+1)//2%M)
for _ in range(int(input())):
answer()