提出 #72167589


ソースコード 拡げる

#include<bits/stdc++.h>
using namespace std;
//#define int long long
//const int mod=;



signed main() {

	//freopen(".in","r",stdin);
	//freopen(".out","w",stdout);

	int n;
	cin >> n;
	cout << pow(2,n) - 2 * n;

	return 0;
}

提出情報

提出日時
問題 A - 2^n - 2*n
ユーザ KDL_ANIPLEX
言語 C++23 (Clang 21.1.0)
得点 100
コード長 244 Byte
結果 AC
実行時間 2 ms
メモリ 3328 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 3
AC × 11
セット名 テストケース
Sample 01.txt, 02.txt, 11.txt
All 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, 10.txt, 11.txt
ケース名 結果 実行時間 メモリ
01.txt AC 2 ms 3160 KiB
02.txt AC 1 ms 3216 KiB
03.txt AC 1 ms 3216 KiB
04.txt AC 1 ms 3316 KiB
05.txt AC 1 ms 3280 KiB
06.txt AC 1 ms 3328 KiB
07.txt AC 1 ms 3156 KiB
08.txt AC 1 ms 3180 KiB
09.txt AC 1 ms 3164 KiB
10.txt AC 1 ms 3236 KiB
11.txt AC 1 ms 3276 KiB