提出 #31449163
ソースコード 拡げる
#include<stdio.h>
int a, b;
int main() {
scanf("%d%d", &a, &b);
if(a > 12) printf("%d\n", b);
else if(a >= 6) printf("%d\n", b / 2);
else printf("0");
return 0;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | A - Ferris Wheel |
| ユーザ | Luogu222865 |
| 言語 | C++ (GCC 9.2.1) |
| 得点 | 100 |
| コード長 | 177 Byte |
| 結果 | AC |
| 実行時間 | 4 ms |
| メモリ | 1724 KiB |
コンパイルエラー
./Main.cpp: In function ‘int main()’:
./Main.cpp:5:7: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
5 | scanf("%d%d", &a, &b);
| ~~~~~^~~~~~~~~~~~~~~~
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 100 / 100 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | 01.txt, 02.txt, 03.txt |
| All | 01.txt, 02.txt, 03.txt, 11.txt, 12.txt, 13.txt, 14.txt, 15.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 01.txt | AC | 4 ms | 1724 KiB |
| 02.txt | AC | 1 ms | 1640 KiB |
| 03.txt | AC | 1 ms | 1508 KiB |
| 11.txt | AC | 1 ms | 1720 KiB |
| 12.txt | AC | 1 ms | 1588 KiB |
| 13.txt | AC | 2 ms | 1652 KiB |
| 14.txt | AC | 1 ms | 1676 KiB |
| 15.txt | AC | 1 ms | 1684 KiB |