117702024-11-10 13:02:38balintPingpongpython3Wrong answer 20/10039ms3128 KiB
def main():
    for _ in range(int(input())):
        A, B = map(int, input().split())
        amounts = []
        for i in range(A // 11 + 1):

            amounta = min(A, 11)
            amountb = min(B, 10)
            amounts.append((amounta, amountb))
            A -= amounta
            B -= amountb
            if A == 0:
                if B != 0:
                    print("-1 -1")
                    break
                else:
                    for j in amounts:
                        print(j[0], j[1])
                    break


main()
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer16ms2988 KiB
subtask220/20
2Accepted16ms3128 KiB
subtask30/30
3Wrong answer18ms3112 KiB
subtask40/50
4Wrong answer32ms3128 KiB
5Wrong answer35ms3088 KiB
6Wrong answer39ms3128 KiB