結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,384 KB
testcase_01 AC 4 ms
4,376 KB
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;
        if(p==2)cout<<2<<endl;
        else cout<<lcm(p,p-1)-p+1<<endl;
    }
}
0