Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- board=[x for x in range(-25,26)]
- print board
- input_case=[]
- def robot_input():
- cases_num=input("enter the number of cases:")
- for i in range(cases_num):
- test_case=raw_input("enter case:")
- input_case.append(test_case)
- return input_case
- def extract_input(input_list):
- for item in input_list:
- item=str(item)
- value=item.split(" ")
- #print value
- F=int(value[0])
- B=int(value[1])
- T=int(value[2])
- FD=int(value[3])
- BD=int("-"+value[4])
- init=25
- time=0
- if(F<FD):
- init+=F
- time+=F*T
- return value
- #print robot_input()
- extract_input(robot_input())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement