結果
問題 |
No.175 simpleDNA
|
ユーザー |
![]() |
提出日時 | 2018-09-12 12:30:27 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 311 bytes |
コンパイル時間 | 644 ms |
コンパイル使用メモリ | 59,292 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-26 11:14:55 |
合計ジャッジ時間 | 1,168 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 2 WA * 4 |
ソースコード
#include <iostream> #include <string> #include <cmath> using namespace std; int main() { unsigned long long l,n; cin >> l >> n; string s; for(int i = 0; i < n; i++) cin >> s; if(l == 3) cout << n << endl; else cout << pow(2,l-3) * n << endl; return 0; }