fork download
  1. t=int(input())
  2. res=[]
  3. for j in range(t):
  4. x,y,k,n=map(int,input().split())
  5.  
  6. if(x<=y):
  7. res.append("LuckyChef")
  8. else:
  9. res.append("UnluckyChef")
  10. for _ in range(n):
  11. p,c=map(int, input().split())
  12. if c<=k:
  13. if p>=x-y:
  14. res[j]='LuckyChef'
  15. break
  16.  
  17. for x in res:
  18. print(x)
Runtime error #stdin #stdout #stderr 0.01s 27704KB
stdin
2
1 1 1 1
100 100
2 1 10 1
20 20
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 4, in <module>
ValueError: not enough values to unpack (expected 4, got 2)