結果

問題 No.175 simpleDNA
ユーザー mayoko_
提出日時 2015-04-02 23:23:37
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 431 bytes
コンパイル時間 1,222 ms
コンパイル使用メモリ 159,944 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-03 23:42:01
合計ジャッジ時間 1,607 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

#define rep(i, n) for (int (i) = 0; (i) < (int)(n); (i)++)

const int dx[] = {1, 0, -1, 0};
const int dy[] = {0, 1, 0, -1};
using namespace std;
typedef long long ll;

int main() {
    int L, N;
    cin >> L;
    cin >> N;
    for (int i = 0; i < N; i++) {
        string s;
        cin >> s;
    }
    int ans = 1;
    for (int i = 0; i < L-3; i++) ans *= 2;
    cout << ans * N << endl;
    return 0;
}
0