結果
| 問題 |
No.1232 2^x = x
|
| コンテスト | |
| ユーザー |
hanbei_dayo
|
| 提出日時 | 2020-10-01 10:45:36 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 336 bytes |
| コンパイル時間 | 1,253 ms |
| コンパイル使用メモリ | 167,284 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-07 01:11:37 |
| 合計ジャッジ時間 | 1,777 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 3 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
#define N (1000000000+7)
//#define N (998244353)
#define INF 1e16
typedef 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;
}
}
hanbei_dayo