結果
問題 |
No.1232 2^x = x
|
ユーザー |
|
提出日時 | 2021-04-02 12:40:33 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 192 bytes |
コンパイル時間 | 4,438 ms |
コンパイル使用メモリ | 191,900 KB |
最終ジャッジ日時 | 2025-01-20 07:47:44 |
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 1 WA * 2 |
ソースコード
#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; } }