結果
| 問題 |
No.2649 [Cherry 6th Tune C] Anthem Flower
|
| コンテスト | |
| ユーザー |
ikoma
|
| 提出日時 | 2024-02-23 23:26:39 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 251 ms / 2,000 ms |
| コード長 | 163 bytes |
| コンパイル時間 | 360 ms |
| コンパイル使用メモリ | 82,028 KB |
| 実行使用メモリ | 79,912 KB |
| 最終ジャッジ日時 | 2024-09-29 08:58:44 |
| 合計ジャッジ時間 | 7,832 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 35 |
ソースコード
import sys
input = sys.stdin.readline
sys.set_int_max_str_digits(0)
T=int(input())
for _ in range(T):
N,M=map(int,input().split())
print(N*(N+1)//2 % M)
ikoma