結果
問題 | No.1232 2^x = x |
ユーザー |
![]() |
提出日時 | 2020-10-06 11:43:02 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 336 bytes |
コンパイル時間 | 1,445 ms |
コンパイル使用メモリ | 165,264 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-20 00:42:19 |
合計ジャッジ時間 | 2,160 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 3 |
ソースコード
#include<bits/stdc++.h>using namespace std;#define N (1000000000+7)//#define N (998244353)#define INF 1e16typedef long long ll;int main(void){int n;cin>>n;while(n--){ll p;cin>>p;if(p==2){cout<<2<<endl;continue;}cout<<(p-1)*(p-1)<<endl;}}