116452024-11-02 21:56:07KezdőPingpongpython3Wrong answer 0/10039ms3148 KiB
N = int(input())
for i in range(N):
    A,B = [int(i) for i in input().split()]
    if A <= B or A < 33:
        print(-1,-1)
    else:
        AA = [11]*(A//11)
        BB = []
        if A%11 != 0:
            AA = [A%11] + AA
            BB = [11]
            B -= 11
        BB += [B%10] + [10]*(B//10)
        BB += [0] * (len(AA)-len(BB))
        for i in range(len(AA)):
            print(AA[i],BB[i])
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted16ms2916 KiB
subtask20/20
2Wrong answer16ms3128 KiB
subtask30/30
3Wrong answer18ms3128 KiB
subtask40/50
4Wrong answer32ms3148 KiB
5Wrong answer37ms3128 KiB
6Wrong answer39ms3144 KiB