結果
問題 | No.175 simpleDNA |
ユーザー |
![]() |
提出日時 | 2015-08-25 23:44:25 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 388 bytes |
コンパイル時間 | 477 ms |
コンパイル使用メモリ | 63,864 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-18 14:35:21 |
合計ジャッジ時間 | 955 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
ソースコード
#include<iostream>#include<vector>#include<string>#include<cmath>int main() {int simpleDNA_length, finish_num;std::cin >> simpleDNA_length >> finish_num;std::vector<std::string> codon(finish_num);for (int i = 0; i < finish_num; i++) {std::cin >> codon[i];}long long ans = pow(2LL, (simpleDNA_length - 3)) * finish_num;std::cout << ans << std::endl;return 0;}