提出 #1303041


ソースコード 拡げる

#include <stdio.h>

int main(void)
{
  int x, y;
  int sum[] = {1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1};

  scanf("%d %d", &x, &y);

  if(sum[x-1] == sum[y-1])
    printf("Yes\n");
  else
    printf("No\n");

  return 0;
}

提出情報

提出日時
問題 A - Grouping
ユーザ Lionking07
言語 C (GCC 5.4.1)
得点 100
コード長 235 Byte
結果 AC
実行時間 1 ms
メモリ 128 KiB

コンパイルエラー

./Main.c: In function ‘main’:
./Main.c:8:3: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d %d", &x, &y);
   ^

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 2
AC × 7
セット名 テストケース
Sample 0_00.txt, 0_01.txt
All 0_00.txt, 0_01.txt, 1_00.txt, 1_01.txt, 1_02.txt, 1_03.txt, 1_04.txt
ケース名 結果 実行時間 メモリ
0_00.txt AC 1 ms 128 KiB
0_01.txt AC 0 ms 128 KiB
1_00.txt AC 1 ms 128 KiB
1_01.txt AC 0 ms 128 KiB
1_02.txt AC 0 ms 128 KiB
1_03.txt AC 0 ms 128 KiB
1_04.txt AC 0 ms 128 KiB