Friday, June 1, 2018

UVA - 12992 .cpp file

#include <bits/stdc++.h>
using namespace std;
int main()
{
    int t, c = 0;
    int n;
    cin>>t;
    while (t--)
    {
        cin>>n;
        printf("Case #%d: %d\n", ++c, n*2-1);
    }
    return 0;
}

No comments:

Post a Comment