結果
| 問題 |
No.175 simpleDNA
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-06-11 23:03:28 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| コード長 | 403 bytes |
| コンパイル時間 | 120 ms |
| コンパイル使用メモリ | 20,096 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-06 15:46:57 |
| 合計ジャッジ時間 | 549 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:13:9: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
13 | fscanf(stdin, "%ld", &l);
| ^~~~~~~~~~~~~~~~~~~~~~~~
main.c:14:9: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
14 | fscanf(stdin, "%ld", &n);
| ^~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
unsigned long beki[30] = {
1, 2, 4, 8, 16, 32, 64, 128, 256,
512, 1024, 2048, 4096, 8192, 16384,
32768, 65536, 131072, 262144, 524288,
1048576, 2097152, 4194304, 8388608, 16777216,
33554432, 67108864, 134217728, 268435456, 536870912
};
int main(void) {
unsigned long l, n;
fscanf(stdin, "%ld", &l);
fscanf(stdin, "%ld", &n);
printf("%ld\n", beki[l - 3] * n);
return 0;
}