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: Wrong Answer)

#include <stdio.h>

typedef long long ll;

ll a[100005];
ll b[100005];
ll sum[100005][2];

int main(){

	int N;

	ll K;

	scanf("%d %lld",&N,&K);

	int i;

	sum[0][0]=1ll;
	sum[0][1]=0ll;
	b[0]=0ll;

	for(i=1;i<=N;i++){
	scanf("%lld %lld",&a[i],&b[i]);
	sum[i][0]=sum[i-1][0]+b[i-1];
	sum[i][1]=sum[i-1][1]+b[i];
	}

	for(i=1;i<=N;i++){
		if(sum[i][0]<=K&&K<=sum[i][1]){
		printf("%lld\n",a[i]);
		break;
		}
	}


	return 0;
}