Submission #72184813
Source Code Expand
#include<bits/stdc++.h>
using namespace std;
long long n;
int main(){
cin >> n;
cout << pow(2 , n) - 2 * n;
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - 2^n - 2*n |
| User | Hacker_ |
| Language | C++23 (GCC 15.2.0) |
| Score | 100 |
| Code Size | 139 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 4168 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| 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 |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 01.txt | AC | 1 ms | 4080 KiB |
| 02.txt | AC | 1 ms | 3888 KiB |
| 03.txt | AC | 1 ms | 3980 KiB |
| 04.txt | AC | 1 ms | 3972 KiB |
| 05.txt | AC | 1 ms | 4168 KiB |
| 06.txt | AC | 1 ms | 4080 KiB |
| 07.txt | AC | 1 ms | 4080 KiB |
| 08.txt | AC | 1 ms | 3980 KiB |
| 09.txt | AC | 1 ms | 3972 KiB |
| 10.txt | AC | 1 ms | 4068 KiB |
| 11.txt | AC | 1 ms | 3988 KiB |