gha890826

a005. Eva 的回家作業

Apr 29th, 2021
548
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import sys
  2. for t in sys.stdin:
  3.     t=int(t)
  4.     for j in range(0,t):
  5.         line=input()
  6.         line=line.split()
  7.         for i in range(0,len(line)):
  8.             line[i]=int(line[i])
  9.         if line[2]-line[1]==line[1]-line[0]:
  10.             for i in line:
  11.                 print (i,end=' ')
  12.             print (line[3]+line[2]-line[1])
  13.         else:
  14.             for i in line:
  15.                 print (i,end=' ')
  16.             print (int(line[3]*(line[2]/line[1])))
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×