Sunday, April 24, 2016

UVA 11547: Automatic Answer -Solution

Unknown
#include <stdio.h>
#include <math.h>
int main ()
{
    int t, n;
    scanf("%d",&t);
    while (t--)
    {
        scanf("%d",&n);
        n=(n*315)+36962;
        n=n%100;
        n=n/10;
        printf("%d\n",abs(n));
    }
    return 0;
}

Unknown

Studying at Shahjalal University of Science and Technology, Sylhet.

0 comments:

Post a Comment

Coprights @ 2016,