提出 #950387
ソースコード 拡げる
#include<stdio.h>
int main(void)
{
int a, b, c, d, e, f, g, h, i;
scanf("%d %d",&a, &b);
c=a%16;
d=b%9;
if(c==0 && d==0){
printf("16:9\n");
}
else{
printf("4:3\n");
}
return 0;
}
提出情報
コンパイルエラー
./Main.c: In function ‘main’:
./Main.c:5:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&a, &b);
^
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 100 / 100 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | example_01.txt, example_02.txt, example_03.txt |
| All | 16_9_01.txt, 16_9_02.txt, 16_9_03.txt, 16_9_04.txt, 16_9_05.txt, 16_9_06.txt, 16_9_07.txt, 16_9_08.txt, 16_9_09.txt, 16_9_10.txt, 16_9_max.txt, 4_3_01.txt, 4_3_02.txt, 4_3_03.txt, 4_3_04.txt, 4_3_05.txt, 4_3_06.txt, 4_3_07.txt, 4_3_08.txt, 4_3_09.txt, 4_3_10.txt, 4_3_max.txt, example_01.txt, example_02.txt, example_03.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 16_9_01.txt | AC | 1 ms | 256 KiB |
| 16_9_02.txt | AC | 1 ms | 128 KiB |
| 16_9_03.txt | AC | 1 ms | 128 KiB |
| 16_9_04.txt | AC | 1 ms | 128 KiB |
| 16_9_05.txt | AC | 1 ms | 128 KiB |
| 16_9_06.txt | AC | 1 ms | 128 KiB |
| 16_9_07.txt | AC | 1 ms | 128 KiB |
| 16_9_08.txt | AC | 1 ms | 128 KiB |
| 16_9_09.txt | AC | 1 ms | 128 KiB |
| 16_9_10.txt | AC | 1 ms | 128 KiB |
| 16_9_max.txt | AC | 1 ms | 128 KiB |
| 4_3_01.txt | AC | 1 ms | 128 KiB |
| 4_3_02.txt | AC | 1 ms | 128 KiB |
| 4_3_03.txt | AC | 1 ms | 128 KiB |
| 4_3_04.txt | AC | 1 ms | 128 KiB |
| 4_3_05.txt | AC | 1 ms | 128 KiB |
| 4_3_06.txt | AC | 1 ms | 128 KiB |
| 4_3_07.txt | AC | 1 ms | 128 KiB |
| 4_3_08.txt | AC | 1 ms | 128 KiB |
| 4_3_09.txt | AC | 1 ms | 128 KiB |
| 4_3_10.txt | AC | 1 ms | 256 KiB |
| 4_3_max.txt | AC | 1 ms | 128 KiB |
| example_01.txt | AC | 1 ms | 128 KiB |
| example_02.txt | AC | 1 ms | 128 KiB |
| example_03.txt | AC | 1 ms | 128 KiB |