Zerofy Problem In Newton School Python

[Solved] Zerofy Problem In Newton School Python | Solidity - Code Explorer | yomemimo.com
Question : zerofy problem in newton school python

Answered by : 4224-ravi-kiran

T = int(input().strip())
inputs = []
for _ in range(T): l1 = list(map(int, input().split())) inputs.append(l1)
for l1 in inputs: prev_l1 = l1.copy() while True: l1.sort() l1[1] = l1[1] - 1 l1[2] = l1[2] - 1 print(l1) if l1 == [0, 0, 0]: print("Yes") break elif l1[1] < 0 or l1[2] < 0 or prev_l1 == l1: print("No") break prev_l1=l1.copy()

Source : | Last Update : Thu, 06 Oct 22

Answers related to zerofy problem in newton school python

Code Explorer Popular Question For Solidity