結果
| 問題 |
No.1232 2^x = x
|
| コンテスト | |
| ユーザー |
t33f
|
| 提出日時 | 2019-04-18 08:05:01 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 2,000 ms |
| コード長 | 184 bytes |
| コンパイル時間 | 477 ms |
| コンパイル使用メモリ | 64,424 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-21 03:26:46 |
| 合計ジャッジ時間 | 1,095 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 3 |
ソースコード
#include <iostream>
using namespace std;
int main() {
int n; cin >> n;
while (n--) {
long long p; cin >> p;
cout << (p == 2 ? 2 : (p-1)*(p-1)) << endl;
}
}
t33f