Submission #74757897
Source Code Expand
Copy
#include <stdio.h>int main(void) {int N;if (scanf("%d", &N) != 1) return 1;printf("%d\n", (1 << N) - 2 * N);return 0;}
#include <stdio.h>
int main(void) {
int N;
if (scanf("%d", &N) != 1) return 1;
printf("%d\n", (1 << N) - 2 * N);
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - 2^n - 2*n |
| User | mikecat |
| Language | C23 (GCC 14.2.0) |
| Score | 100 |
| Code Size | 138 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 1708 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 | 1580 KiB |
| 02.txt | AC | 1 ms | 1576 KiB |
| 03.txt | AC | 1 ms | 1692 KiB |
| 04.txt | AC | 0 ms | 1576 KiB |
| 05.txt | AC | 0 ms | 1648 KiB |
| 06.txt | AC | 1 ms | 1708 KiB |
| 07.txt | AC | 0 ms | 1680 KiB |
| 08.txt | AC | 0 ms | 1632 KiB |
| 09.txt | AC | 1 ms | 1580 KiB |
| 10.txt | AC | 0 ms | 1656 KiB |
| 11.txt | AC | 0 ms | 1496 KiB |