Codeforces 628A Tennis Tournament

题目:http://codeforces.com/contest/628/problem/A

代码:

#include<stdio.h>
int a,b,c;
int main()
{
    while(~scanf("%d%d%d",&a,&b,&c))
    {
        printf("%d %d\n",(a-1)*(2*b+1),a*c);
    }
}

只要翻译。

你可能感兴趣的:(Codeforces 628A Tennis Tournament)