repl.it
@Lord_Poseidon/

kickstartG

Python

No description

fork
loading
Files
  • main.py
  • 1.py
  • 2.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
'''for _ in range(int(input())):
	s,w1,w2,w3=[int(i) for i in input().split(' ')]
	w=[w1,w2,w3]
	if sum(w)<=s:
		print(1)
	elif w[0]+w[1] <=s or w[1] + w[2] <= s:
		print(2)
	else: print(3)
'''


for _ in range(int(input())):
	n=int(input())
	k=10**n
	a=int(input())
	print(a+(2*(k)),flush=True)
	print(k-int(input()),flush=True)
	print(k-int(input()),flush=True)
	if input() == '-1':
		break


?