不知道哪位可以看一下,系统的输出和自己输出结果不一样,输入数据是一样的
查看原帖
不知道哪位可以看一下,系统的输出和自己输出结果不一样,输入数据是一样的
94399
wushuai楼主2021/2/27 00:15

a,b,c = map(int, input().split()) x=0 for i in range (b): d,e=map(int,input().split()) if d==0 and e>0: x=x+1 else: if e==0: x=x else: h=a//d if h*e>c: x=x+1 else: x=x if x==0: print(-1) else: print(x) 以下是输入数据: 98 3 489 45 328 4 85 60 7 系统输出: 1 2 自己输出: 2

2021/2/27 00:15
加载中...