結果

問題 No.1232 2^x = x
ユーザー 夜
提出日時 2020-09-18 21:49:25
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 420 bytes
コンパイル時間 721 ms
コンパイル使用メモリ 89,720 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-04 10:26:42
合計ジャッジ時間 1,524 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 3 ms
4,376 KB
testcase_02 AC 4 ms
4,376 KB
testcase_03 AC 3 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <iomanip>
#include <cmath>
#include <stdio.h>
#include <queue>
#include <deque>
#include <cstdio>
#include <set>
#include <map>
#include <bitset>
#include <stack>
#include <cctype>
using namespace std;
int main() {
	int n;
	cin >> n;
	for (int i = 0; i < n; i++) {
		long long p;
		cin >> p;
		cout << (p - 1) * (p - 1) << endl;
	}
}
0