結果
| 問題 |
No.175 simpleDNA
|
| コンテスト | |
| ユーザー |
ikd
|
| 提出日時 | 2015-11-02 11:29:16 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 418 bytes |
| コンパイル時間 | 441 ms |
| コンパイル使用メモリ | 57,316 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-13 07:00:41 |
| 合計ジャッジ時間 | 934 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 |
ソースコード
#include<iostream>
#include<stdio.h>
using namespace std;
int main(){
int l, n;
cin>> l>> n;
string str[n];
for(int i=0; i<n; i++){
cin>> str[i];
}
int rest = l-3;
int temp=1;
int ans = 0;
for(int i=0; i<n; i++){
for(int j=0; j<rest; j++){
temp = temp*2;
}
ans += temp;
temp = 1;
}
cout<< ans<< endl;
return 0;
}
ikd