Advertisement
harsh_jec

sheldon cooper(codevita)

Aug 7th, 2015
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. board=[x for x in range(-25,26)]
  2. print board
  3. input_case=[]
  4.  
  5. def robot_input():
  6. cases_num=input("enter the number of cases:")
  7. for i in range(cases_num):
  8.  
  9. test_case=raw_input("enter case:")
  10. input_case.append(test_case)
  11. return input_case
  12.  
  13.  
  14. def extract_input(input_list):
  15. for item in input_list:
  16. item=str(item)
  17. value=item.split(" ")
  18. #print value
  19. F=int(value[0])
  20. B=int(value[1])
  21. T=int(value[2])
  22. FD=int(value[3])
  23. BD=int("-"+value[4])
  24. init=25
  25. time=0
  26. if(F<FD):
  27. init+=F
  28. time+=F*T
  29.  
  30. return value
  31. #print robot_input()
  32. extract_input(robot_input())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement