結果
| 問題 |
No.2649 [Cherry 6th Tune C] Anthem Flower
|
| コンテスト | |
| ユーザー |
t9unkubj
|
| 提出日時 | 2024-02-23 21:53:14 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 619 ms / 2,000 ms |
| コード長 | 364 bytes |
| コンパイル時間 | 6,294 ms |
| コンパイル使用メモリ | 381,644 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-09-29 06:21:25 |
| 合計ジャッジ時間 | 16,923 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 35 |
ソースコード
/*
*/
#include<bits/stdc++.h>
#ifdef t9unkubj
#define dbg(x) cout<<__LINE__<<" "<<#x<<":="<<x<<endl;
#else
#define dbg(x) t9unkubj
#endif
using namespace std;
#include <boost/multiprecision/cpp_int.hpp>
namespace mp = boost::multiprecision;
int main(){
int t;
cin>>t;
for(int _=0;_<t;_++){
mp::cpp_int n,m;
cin>>n>>m;
cout<<(n*(n+1)/2)%m<<endl;
}
}
t9unkubj