結果

問題 No.175 simpleDNA
ユーザー oooooba
提出日時 2021-01-19 21:57:15
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 441 bytes
コンパイル時間 778 ms
コンパイル使用メモリ 101,232 KB
最終ジャッジ日時 2025-01-18 02:41:14
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <algorithm>
#include <array>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <numeric>
#include <optional>
#include <unordered_map>
#include <unordered_set>
#include <vector>

using namespace std;

int main() {
    int32_t l, n;
    cin >> l >> n;
    int64_t ans = 0;
    for (auto i = 0; i < n; ++i) {
        string s;
        cin >> s;
        ans += 1 << (l - 3);
    }
    cout << ans << endl;
    return 0;
}
0