Submission #9685347


Source Code Expand

Copy
#include<stdio.h>
int main(void)
{
	int M1, D1, M2, D2;
	scanf("%d", &M1);
	scanf("%d", &D1);
	scanf("%d", &M2);
	scanf("%d", &D2);
	if (M1 + 1 == M2 || (M1 == 12 && M2 == 1))
		printf("1");
	else
		printf("0");
	return 0;
}

Submission Info

Submission Time
Task A - November 30
User SABUROU
Language C (GCC 5.4.1)
Score 100
Code Size 237 Byte
Status
Exec Time 1 ms
Memory 128 KB

Compile Error

./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", &M1);
  ^
./Main.c:6:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d", &D1);
  ^
./Main.c:7:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d", &M2);
  ^
./Main.c:8:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d", &D2);
  ^

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 sample_01.txt, sample_02.txt
All 100 / 100 in01.txt, in02.txt, in03.txt, in04.txt, in05.txt, in06.txt, in07.txt, in08.txt, in09.txt, in10.txt, in11.txt, in12.txt, in13.txt, in14.txt, in15.txt, sample_01.txt, sample_02.txt
Case Name Status Exec Time Memory
in01.txt 0 ms 128 KB
in02.txt 0 ms 128 KB
in03.txt 0 ms 128 KB
in04.txt 0 ms 128 KB
in05.txt 0 ms 128 KB
in06.txt 0 ms 128 KB
in07.txt 0 ms 128 KB
in08.txt 0 ms 128 KB
in09.txt 0 ms 128 KB
in10.txt 0 ms 128 KB
in11.txt 1 ms 128 KB
in12.txt 1 ms 128 KB
in13.txt 1 ms 128 KB
in14.txt 1 ms 128 KB
in15.txt 1 ms 128 KB
sample_01.txt 1 ms 128 KB
sample_02.txt 0 ms 128 KB