a005.
Eva 的回家作業
--
POJ
| From: [27.105.46.82] |
發表日期
:
2018-01-19 21:13
import sys
row_num = int(input())
while(row_num>0):
for num in sys.stdin:
a,b,c,d = map(int,num.split())
if (b - a)==(d - c):
print(a,b,c,d,2*d-c)
else:
print(a,b,c,d,d*(d/c))
row_num = row_num -1