結果
問題 | No.175 simpleDNA |
ユーザー |
![]() |
提出日時 | 2018-09-03 23:50:26 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 6 ms / 1,000 ms |
コード長 | 1,043 bytes |
コンパイル時間 | 848 ms |
コンパイル使用メモリ | 97,264 KB |
実行使用メモリ | 8,448 KB |
最終ジャッジ日時 | 2024-10-10 02:15:12 |
合計ジャッジ時間 | 1,495 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
ソースコード
#include <iostream>#include <vector>#include <algorithm>#include <string>#include <map>#include <cmath>#include <queue>#include <numeric>#include <climits>#include <iterator>#include <iomanip>#include <stack>#include <set>#include <bitset>#include <functional>using namespace std;const constexpr int INF = 1e9;//typedef std::pair<std::string,double> P;#define FOR(i, a, n) for (ll i = (ll)a; i<(ll)n; ++i)#define REP(i, n) FOR(i, 0, n)typedef long long ll;typedef vector<int> VI;const constexpr ll MOD = 1e9+7;vector<pair<int, int> > vp;struct Less {bool operator()(const pair<int, int>& x, const pair<int, int>& y) const {return x.first > y.first;}};ll GCD(ll a, ll b){if(b==0) return a;return GCD(b, a%b);}//グラフの隣接リストVI g[200010];//頂点の入次数を管理int h[100010];vector<int> v;int main(void) {int L, N; cin >> L >> N;ll ans=0;string s;REP(i, N) cin >> s;ans = pow(2, L-3)*N;cout << ans << endl;return 0;}