Problem:
Score : 100 points

Problem Statement

X and A are integers between 0 and 9 (inclusive).

If X is less than A, print 0; if X is not less than A, print 10.

Constraints

0 \leq X, A \leq 9

All values in input are integers.

Input

Input is given from Standard Input in the following format:

X A

Output

If X is less than A, print 0; if X is not less than A, print 10.

Sample Input 1

3 5

Sample Output 1

0

3 is less than 5, so we should print 0.

Sample Input 2

7 5

Sample Output 2

10

7 is not less than 5, so we should print 10.

Sample Input 3

6 6

Sample Output 3

10

6 is not less than 6, so we should print 10.

Solution in C (GCC 5.4.1) (judge verdict: Wrong Answer)

#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<assert.h>

#define max(a,b) ((a)>(b))?(a):(b)
#define min(a,b) ((a)>(b))?(b):(a)

typedef long long ll;
typedef unsigned long long ull;

int main(void)
{
	int* a;
	int n, k;
	register ll cnt = 0, sum = 0;
	scanf("%d%d", &n, &k);

	a = malloc(n * sizeof(int));
	for (size_t i = 0; i < n; i++)
	{
		scanf("%d", a + i);
	}

	for (register size_t i = 0; i < n - 1; i++)
	{
		sum = 0;
		for (register size_t j = i; j < n; j++)
		{
			sum += a[j];
			if (sum >= k)
			{
				cnt += n - j;
				break;
			}
		}
	}

	printf("%lld", cnt);
}