June Lunchtime 2021 Division 3

June Lunchtime 2021 Division 3


Richie Rich Problem Code: CHFRICH

 for _ in range(int(input())):

    a,b,c = map(int, input().split())

    print((b-a)//c)


False Number Problem Code: FALSNUM


try:

    for _ in range(int(input())):

        s=input()

        if(s[0]=="1"):

            a = s[0] + "0" + s[1:]

            print(a)

        else:

            a = "1" + s

            print(a)

except:

    pass



HTML Tags Problem Code: HTMLTAGS

for _ in range(int(input())):

    a=input()

    b=len(a)-1

    if(a[:2]=="</" and a[-1]==">"):

        if(a[2:b].isalnum() and a[2:b].islower()):

            print("Success")

        elif(a[2:b].isnumeric()):

            print("Success")

        else:

            print("Error")

    else:

        print("Error")