My issue
i cant able to do this
My code
# Update the program below to solve the problem
def min_incorrect_problems(X):
i = 0
while (X + i) % 3 != 0 or (X+i)//3+i > 100:
i += 1
return 1
t = int(input())
for i in range(t):
X = int(input())
print(min_incorrect_problems(X))
Learning course: Design and Analysis of Algorithms
Problem Link: https://www.codechef.com/learn/course/kl-daa/KLDAA24PRE02/problems/PREQ23