結果

問題 No.1232 2^x = x
ユーザー shiomusubi496shiomusubi496
提出日時 2021-04-02 12:37:01
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 154 bytes
コンパイル時間 2,212 ms
コンパイル使用メモリ 198,400 KB
実行使用メモリ 4,504 KB
最終ジャッジ日時 2023-08-24 20:40:50
合計ジャッジ時間 2,569 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
int main(){
    int Q;cin>>Q;
    while(Q--){
        int p;cin>>p;
        cout<<lcm(p,p-1)+1<<endl;
    }
}
0