文章目录
- 正文
- 数字*+
- 三角形
- 四舍五入
- 写在最后
- END
正文
数字*+

import sys
import math
# Auto-generated code below aims at helping you parse
# the standard input according to the problem statement.
n = int(input())
for i in range(n):
a, b = [int(j) for j in input().split()]
print(a*a+b)
三角形

import sys
import math
# Auto-generated code below aims at helping you parse
# the standard input according to the problem statement.
a = int(input())
b = int(input())
c = int(input())
if (a + b > c) and (a + c > b) and (b + c > a) and a > 0 and b > 0 and c > 0:
print(a + b + c)
else:
print(-1)
四舍五入


import sys
import math
# Auto-generated code below aims at helping you parse
# the standard input according to the problem statement.
n = int(input())
count = 0
for i in range(n):
earning, probability = [float(j) for j in input().split()]
count+=earning*probability
print(f"{round(count,2):.2f}")
写在最后
欢迎技术类的问题到这里提出,我会逐个解答


















![[工具]GitHub + PicGo 搭建免费博客图床](https://img-blog.csdnimg.cn/img_convert/8be8b771d296d9064edf3526fcce5c0c.png)
