提出 #72167682
ソースコード 拡げる
#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
#include <climits>
#define no cout << "No" << endl;
#define yes cout << "Yes" <<endl;
using ll = long long ;
using P=pair<int,int>;
//N×M vector<vector<int>> A(N,vector<int>(M)); A[i][j] A.push_back(data);
//sort (b.begin(),b.end()); if(b.size() >=2);
//int keta = to_string(b).length(); pow(10,keta);
//set<int> a; a.insert(da); a.count(da) for(auto v: a)
//using P=pair<int,int>;vector<P> c;c.emplace_back(da,i) //index保持
//auto dfs =[&](auto f, int i, int j) -> void {};
//b ha kihon zentansaku
//shoujin houhou komentodake nokosite mosha
//set<pair<int,int>> st;st.insert({r,c});st.count({x,y})
int main() {
int n;cin >> n;
unsigned long long ans = 1;
rep(i,n){
ans*=2;
}
cout << ans - 2*n << endl;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | A - 2^n - 2*n |
| ユーザ | BvBDnl26 |
| 言語 | C++23 (GCC 15.2.0) |
| 得点 | 100 |
| コード長 | 847 Byte |
| 結果 | AC |
| 実行時間 | 1 ms |
| メモリ | 3580 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 100 / 100 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| 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 | 1 ms | 3564 KiB |
| 02.txt | AC | 1 ms | 3484 KiB |
| 03.txt | AC | 1 ms | 3548 KiB |
| 04.txt | AC | 1 ms | 3552 KiB |
| 05.txt | AC | 1 ms | 3548 KiB |
| 06.txt | AC | 1 ms | 3488 KiB |
| 07.txt | AC | 1 ms | 3440 KiB |
| 08.txt | AC | 1 ms | 3364 KiB |
| 09.txt | AC | 1 ms | 3500 KiB |
| 10.txt | AC | 1 ms | 3580 KiB |
| 11.txt | AC | 1 ms | 3548 KiB |