tw16108.pp 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. uses
  2. Math;
  3. var
  4. i: longint;
  5. ires: longint;
  6. qres: int64;
  7. begin
  8. randomize;
  9. for i:=1 to 100 do
  10. begin
  11. ires:=randomrange(-4,-7);
  12. if (ires<-7) or
  13. (ires>=-4) then
  14. halt(1);
  15. ires:=randomrange(-7,-4);
  16. if (ires<-7) or
  17. (ires>=-4) then
  18. halt(2);
  19. ires:=randomrange(10,-3);
  20. if (ires<-3) or
  21. (ires>=10) then
  22. halt(3);
  23. ires:=randomrange(-3,10);
  24. if (ires<-3) or
  25. (ires>=10) then
  26. halt(4);
  27. ires:=randomrange(5,10);
  28. if (ires<5) or
  29. (ires>=10) then
  30. halt(5);
  31. ires:=randomrange(10,5);
  32. if (ires<5) or
  33. (ires>=10) then
  34. halt(6);
  35. qres:=randomrange(low(int64)+1,low(int64)+10);
  36. if (qres<low(int64)+1) or
  37. (qres>=low(int64)+10) then
  38. halt(7);
  39. qres:=randomrange(low(int64)+10,low(int64)+1);
  40. if (qres<low(int64)+1) or
  41. (qres>=low(int64)+10) then
  42. halt(8);
  43. qres:=randomrange(int64(10),int64(-3));
  44. if (qres<-3) or
  45. (qres>=10) then
  46. halt(3);
  47. qres:=randomrange(int64(-3),int64(10));
  48. if (qres<-3) or
  49. (qres>=10) then
  50. halt(4);
  51. qres:=randomrange(int64(5),int64(10));
  52. if (qres<5) or
  53. (qres>=10) then
  54. halt(5);
  55. qres:=randomrange(int64(10),int64(5));
  56. if (qres<5) or
  57. (qres>=10) then
  58. halt(6);
  59. end;
  60. end.