Sunday, April 24, 2016

Published April 24, 2016 by with 0 comment

UVA 11547: Automatic Answer -Solution

#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;
}
      edit

0 comments:

Post a Comment