MY name is ruhul amin

ISLAMIC UNIVERSITY OF KUSHTIA

Wednesday, March 13, 2013

uva solve problem 11723 - Numbering Roads

#include<stdio.h>
int main()
{
    long int n,r,k;
    int i;
    for(i=1;i<=10002;i++)
    {
        scanf("%ld%ld",&r,&n);
        if((r==0)&&(n==0))
        break;
        k=(r-1)/n;
        if(k>26)
        printf("Case %d: impossible\n",i);
        else
        printf("Case %d: %ld\n",i,k);

    }
    return 0;
}

No comments:

Post a Comment