結果
| 問題 |
No.175 simpleDNA
|
| コンテスト | |
| ユーザー |
y_mazun
|
| 提出日時 | 2015-04-02 23:23:39 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| コード長 | 230 bytes |
| コンパイル時間 | 175 ms |
| コンパイル使用メモリ | 32,896 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-03 23:42:04 |
| 合計ジャッジ時間 | 622 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 |
コンパイルメッセージ
main.cpp: In function ‘int getInt()’:
main.cpp:2:34: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
2 | inline int getInt(){ int s; scanf("%d", &s); return s; }
| ~~~~~^~~~~~~~~~
ソースコード
#include <cstdio>
inline int getInt(){ int s; scanf("%d", &s); return s; }
#include <set>
using namespace std;
int main(){
const int n = getInt();
const int m = getInt();
printf("%d\n", (1 << (n - 3)) * m);
return 0;
}
y_mazun