結果

問題 No.175 simpleDNA
ユーザー zaichu
提出日時 2015-12-20 00:33:33
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 319 bytes
コンパイル時間 646 ms
コンパイル使用メモリ 66,800 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-17 11:08:11
合計ジャッジ時間 1,453 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <vector>
#include <set>
#include <cmath>
#include <string>
using namespace std;

int main(){
	int len,n;
	cin >> len >> n;
	int count = 0;
	string str;
	for(int i = 0; i < n; i++){
		cin >> str;
		count += pow(2,len-str.size());
	}
	cout << count << endl;
	return 0;
}
0