ログインしてください。
提出 #68678506
ソースコード 拡げる
#include <stdio.h>
int main() {
int x, y;
scanf("%d %d", &x, &y);
if (x + y <= 12) {
printf("%d\n", x + y);
} else {
printf("%d\n", x + y - 12);
}
return 0;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | A - What month is it? |
| ユーザ | sounansya |
| 言語 | C (gcc 12.2.0) |
| 得点 | 100 |
| コード長 | 178 Byte |
| 結果 | AC |
| 実行時間 | 0 ms |
| メモリ | 1728 KiB |
コンパイルエラー
Main.c: In function ‘main’:
Main.c:4:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4 | scanf("%d %d", &x, &y);
| ^~~~~~~~~~~~~~~~~~~~~~
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 100 / 100 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt |
| All | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt, 01_random_11.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 00_sample_00.txt | AC | 0 ms | 1720 KiB |
| 00_sample_01.txt | AC | 0 ms | 1728 KiB |
| 00_sample_02.txt | AC | 0 ms | 1608 KiB |
| 01_random_00.txt | AC | 0 ms | 1724 KiB |
| 01_random_01.txt | AC | 0 ms | 1560 KiB |
| 01_random_02.txt | AC | 0 ms | 1720 KiB |
| 01_random_03.txt | AC | 0 ms | 1616 KiB |
| 01_random_04.txt | AC | 0 ms | 1628 KiB |
| 01_random_05.txt | AC | 0 ms | 1708 KiB |
| 01_random_06.txt | AC | 0 ms | 1612 KiB |
| 01_random_07.txt | AC | 0 ms | 1620 KiB |
| 01_random_08.txt | AC | 0 ms | 1616 KiB |
| 01_random_09.txt | AC | 0 ms | 1700 KiB |
| 01_random_10.txt | AC | 0 ms | 1700 KiB |
| 01_random_11.txt | AC | 0 ms | 1724 KiB |