Problem:
Score : 100 points

Problem Statement

You are given three integers A, B and C.
Determine whether C is not less than A and not greater than B.

Constraints

-100≤A,B,C≤100

A, B and C are all integers.

Input

Input is given from Standard Input in the following format:

A B C

Output

If the condition is satisfied, print Yes; otherwise, print No.

Sample Input 1

1 3 2

Sample Output 1

Yes

C=2 is not less than A=1 and not greater than B=3, and thus the output should be Yes.

Sample Input 2

6 5 4

Sample Output 2

No

C=4 is less than A=6, and thus the output should be No.

Sample Input 3

2 2 2

Sample Output 3

Yes

Solution in C (GCC 5.4.1) (judge verdict: Runtime Error)

#include "stdio.h"
#include "stdlib.h"
int main()
{
	typedef struct {
		long value;
		long num;
		long nextP;
	}IN_INFO;
	IN_INFO* ptr;
	long N, K;
	long a, b,i,j;
	long inputNum = 0;
	long c = 0;	//挿入場所
	long top = 0;//配列の先頭
	scanf("%ld %ld",&N,&K);

	ptr = (IN_INFO*)malloc(sizeof(IN_INFO) * N);
	
	scanf("%ld %ld", &a, &b);
	ptr[0].value = a;
	ptr[0].num = b;
	ptr[0].nextP = -1;

	//代入
	for (i = 1; i < N; i++) {
		scanf("%ld %ld", &a, &b);
		ptr[i].value = a;
		ptr[i].num = b;
		//NextP(という名の配列添え字)のつなぎ変え
		for (j = 0; j < N; j++) {
			if (ptr[j].value > a) {
				ptr[i].nextP = ptr[j].nextP;
				ptr[j].nextP = i;
				top = j;
				break;
			}
			if (ptr[j].nextP = -1) {
				ptr[j].nextP = i;
				ptr[i].nextP = -1;
				ptr[i].value = a;
				ptr[i].num = b;
				break;
			}
		}
	}
	//結果表示
	for (i = 0; i < N; i++) {
		K = K - ptr[top].num;
		if (K < 1) {
			printf("%ld",ptr[top].value);
			break;
		}
		top = ptr[top].nextP;
	}
	return 0;
}