提出 #1426257


ソースコード 拡げる

#include <stdio.h>

#define COOKIES 3

int main(){
	int a,b;

	scanf("%d %d", &a, &b);

	if(a % COOKIES == 0 || b % COOKIES == 0 || (a + b) % COOKIES == 0){
		printf("Possible\n");
	} else {
		printf("Impossible\n");
	}

	return 0;
}

提出情報

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

コンパイルエラー

./Main.c: In function ‘main’:
./Main.c:8: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
結果
AC × 2
AC × 9
セット名 テストケース
Sample 00_example_01.txt, 00_example_02.txt
All 00_example_01.txt, 00_example_02.txt, 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt
ケース名 結果 実行時間 メモリ
00_example_01.txt AC 1 ms 128 KiB
00_example_02.txt AC 1 ms 128 KiB
01.txt AC 0 ms 128 KiB
02.txt AC 0 ms 128 KiB
03.txt AC 0 ms 128 KiB
04.txt AC 0 ms 128 KiB
05.txt AC 0 ms 128 KiB
06.txt AC 0 ms 128 KiB
07.txt AC 1 ms 128 KiB