結果
| 問題 | No.175 simpleDNA |
| コンテスト | |
| ユーザー |
zaichu
|
| 提出日時 | 2015-12-20 00:33:33 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0 + boost 1.89.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 |
ソースコード
#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;
}
zaichu