当前位置: 代码迷 >> 综合 >> Sqrt Approaching
  详细解决方案

Sqrt Approaching

热度:55   发布时间:2023-12-06 21:37:34.0

链接:https://ac.nowcoder.com/acm/contest/7501/K
来源:牛客网
 

perfect square number 完全平方数

you can assume that solution always exists,and you should print any one of them.

it can be shown that.

 

 

示例1

输入

复制2 1 2

2
1
2

输出

复制3 2

3
2

说明

a=int(input())
b=int(input())
n=int(input())print((n+1)*a+2*n*b)print(a*2+(n+1)*b)