Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. #Alguns testes para o problema
  2.  
  3. Input
  4. 3 5 6 1
  5. 1 2 3
  6. Output
  7. 2
  8.  
  9. 4 40 50 10
  10. 10 20 30 25
  11. Output
  12. 2
  13.  
  14. 5 25 35 10
  15. 10 10 20 10 20
  16. Output
  17. 6
  18.  
  19. Input
  20. 4 15 60 10
  21. 10 20 30 25
  22. Output
  23. 6
  24.  
  25. Input
  26. 10 626451 11471247 246428
  27. 369649 684428 303821 287098 422756 301599 720377 177567 515216 750602
  28. Output
  29. 914
  30.  
  31. Input
  32. 15 1415849 15540979 356865
  33. 8352 960238 276753 259695 712845 945369 60023 920446 181269 392011 318488 857649 30681 740872 115749
  34. Output
  35. 31485
  36.  
  37. Input
  38. 15 4789415 23152928 233992
  39. 502422 273992 449428 947379 700461 681985 857134 243310 478052 77769 936151 642380 464695 281772 964693
  40. Output
  41. 10875
  42.  
  43. Input
  44. 10 159699 10967276 3542
  45. 998862 999751 995306 992648 992661 991407 997503 998809 999740 997669
  46. Output
  47. 942
  48.  
  49. Input
  50. 15 1 1000000000 1
  51. 10 20 30 40 50 60 70 80 90 100 110 120 130 140 150
  52. Output
  53. 32752
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement