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>

int main(){
  int i,j;
  int n,k;
  scanf("%d%d",&n,&k);
  int a[120000];
  int r[120000];
  for(i=0;i<n;i++){
    scanf("%d",&a[i]);
  }
    r[0]=a[0];
    for(i=1;i<n;i++){
      r[i]=r[i-1]+a[i];
    }
    long long int count=0;
    int t=0;
    int h=1;
    for(i=0;i<n;i++){
      if(r[i]>=k){
        count+=(n-i);
        t=1;
        break;
      }
    }
    if(t==1){
      j=0;
      while(h==1){
        if((r[i]-r[j])>=k){
          count+=(n-i);
          j++;

        }else{
          if(i<(n-1)){
          i++;
        }else{
          h=0;
        }
    }
}








      printf("%lld",count);
    }else{
      printf("%d",0);
    }
      return 0;
}