题目: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);
}
}
只要翻译。
题目: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);
}
}