CodeForces 628A Tennis Tournament

代码如下:

#include<cstdio>
int main()
{
    int n,b,p;
    while(~scanf("%d%d%d",&n,&b,&p))
    {
        printf("%d %d\n",(2*b+1)*(n-1),p*n);
    }
    return 0;
}



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