Wednesday, July 20, 2016

UVA 12992 Solution

Unknown
#include<cstdio>
using namespace std;
int main()
{
    int n,tc,c=1;
    scanf("%d",&tc);
    while (tc--)
    {
        scanf("%d",&n);
        printf("Case #%d: %d\n",c++,2*n-1);
    }
    return 0;
}

Unknown

Studying at Shahjalal University of Science and Technology, Sylhet.

0 comments:

Post a Comment

Coprights @ 2016,