結果
| 問題 |
No.175 simpleDNA
|
| コンテスト | |
| ユーザー |
kongarishisyamo
|
| 提出日時 | 2016-03-05 08:55:58 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 233 bytes |
| コンパイル時間 | 552 ms |
| コンパイル使用メモリ | 59,952 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-24 14:14:19 |
| 合計ジャッジ時間 | 969 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 |
ソースコード
#include<iostream>
#include<cmath>
#include<string>
using namespace std;
int main(){
long long L,N;
string S;
long long ans=0;
cin>>L>>N;
for(int i=0;i<N;i++){
cin>>S;
ans+=pow(2.0,(double)L-3);
}
cout<<ans<<endl;
}
kongarishisyamo