結果
| 問題 |
No.175 simpleDNA
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-05-30 16:19:32 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| コード長 | 283 bytes |
| コンパイル時間 | 419 ms |
| コンパイル使用メモリ | 30,080 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-21 19:20:58 |
| 合計ジャッジ時間 | 877 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:10:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
10 | scanf("%d",&l);
| ~~~~~^~~~~~~~~
main.cpp:11:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
11 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
ソースコード
#include <stdio.h>
#include <math.h>
int main(void) {
int l;
int n;
int res;
scanf("%d",&l);
scanf("%d",&n);
//res = (l-3)**n * n;
res = pow(2,l-3)*n;
printf("%d\n", res);
//printf(\n);
return 0;
}