結果

問題 No.175 simpleDNA
ユーザー evawenisevawenis
提出日時 2020-07-05 01:10:13
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 180 bytes
コンパイル時間 1,816 ms
コンパイル使用メモリ 193,116 KB
最終ジャッジ日時 2025-01-11 15:49:17
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;

int main(){
	cin.tie(0),ios::sync_with_stdio(false);
	int l,n; cin>>l>>n;
	int ans=n; l-=3;
	while(l)ans*=2,--l;
	cout<<ans<<"\n"s;
}
0