結果

問題 No.2649 [Cherry 6th Tune C] Anthem Flower
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2024-03-10 19:33:10
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 697 ms / 2,000 ms
コード長 367 bytes
コンパイル時間 260 ms
コンパイル使用メモリ 81,572 KB
実行使用メモリ 84,440 KB
最終ジャッジ日時 2024-03-10 19:33:22
合計ジャッジ時間 11,703 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
61,560 KB
testcase_01 AC 534 ms
77,924 KB
testcase_02 AC 532 ms
77,924 KB
testcase_03 AC 561 ms
77,920 KB
testcase_04 AC 533 ms
77,924 KB
testcase_05 AC 697 ms
77,920 KB
testcase_06 AC 672 ms
77,920 KB
testcase_07 AC 125 ms
77,792 KB
testcase_08 AC 124 ms
77,792 KB
testcase_09 AC 97 ms
77,792 KB
testcase_10 AC 98 ms
77,792 KB
testcase_11 AC 52 ms
63,672 KB
testcase_12 AC 51 ms
63,672 KB
testcase_13 AC 163 ms
79,136 KB
testcase_14 AC 142 ms
78,000 KB
testcase_15 AC 130 ms
77,752 KB
testcase_16 AC 158 ms
78,416 KB
testcase_17 AC 168 ms
79,728 KB
testcase_18 AC 132 ms
77,368 KB
testcase_19 AC 161 ms
79,032 KB
testcase_20 AC 237 ms
84,024 KB
testcase_21 AC 163 ms
79,928 KB
testcase_22 AC 166 ms
79,496 KB
testcase_23 AC 245 ms
84,440 KB
testcase_24 AC 240 ms
84,312 KB
testcase_25 AC 239 ms
84,440 KB
testcase_26 AC 239 ms
84,312 KB
testcase_27 AC 265 ms
83,928 KB
testcase_28 AC 243 ms
84,312 KB
testcase_29 AC 239 ms
84,056 KB
testcase_30 AC 238 ms
81,880 KB
testcase_31 AC 239 ms
81,880 KB
testcase_32 AC 245 ms
84,312 KB
testcase_33 AC 227 ms
83,672 KB
testcase_34 AC 529 ms
77,928 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# 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()
0