結果
問題 | No.175 simpleDNA |
ユーザー |
![]() |
提出日時 | 2018-03-09 02:17:01 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 358 bytes |
コンパイル時間 | 561 ms |
コンパイル使用メモリ | 74,920 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-05 08:28:16 |
合計ジャッジ時間 | 1,197 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
ソースコード
#include<iostream>#include<string>#include<algorithm>#include<cmath>#include<iomanip>#include<cstring>#include<map>#include<vector>using namespace std;typedef long long int ll;int main(){int l, n, ans=0;string s;cin >> l >> n;for(int i=0; i<n; i++){cin >> s;ans+=pow(2, l-s.size());}cout << ans << endl;return 0;}