結果
| 問題 |
No.175 simpleDNA
|
| コンテスト | |
| ユーザー |
184
|
| 提出日時 | 2015-04-02 23:26:26 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| コード長 | 188 bytes |
| コンパイル時間 | 183 ms |
| コンパイル使用メモリ | 23,040 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-03 23:44:50 |
| 合計ジャッジ時間 | 602 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:9:37: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘int*’ [-Wformat=]
9 | for(int i=0;i<n;i++)scanf("%s",s);
| ~^ ~
| | |
| | int*
| char*
| %d
main.cpp:8:29: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
8 | int l,n,s[101];scanf("%d%d",&l,&n);
| ~~~~~^~~~~~~~~~~~~~
main.cpp:9:34: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
9 | for(int i=0;i<n;i++)scanf("%s",s);
| ~~~~~^~~~~~~~
ソースコード
#include <cstdio>
using namespace std;
//namaega184
int main(){
int l,n,s[101];scanf("%d%d",&l,&n);
for(int i=0;i<n;i++)scanf("%s",s);
printf("%d\n",(1<<(l-3))*n);
return 0;
}
184