tw1071.pp 719 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. { %VERSION=1.1 }
  2. var i: int64;
  3. il: longint;
  4. begin
  5. for il:=-20 to 20 do
  6. begin
  7. i:=il;
  8. case i of
  9. -3:
  10. if (i<>-3) then
  11. halt(1);
  12. -7..-5:
  13. if (i<-7) or (i>-5) then
  14. halt(1);
  15. -9..-8:
  16. if (i<-9) or (i>-8) then
  17. halt(1);
  18. 0:
  19. if (i<>0) then
  20. halt(1);
  21. 1:
  22. if (i<>1) then
  23. halt(1);
  24. 2:
  25. if (i<>2) then
  26. halt(1);
  27. 3..6:
  28. if (i<3) or (i>6) then
  29. halt(1);
  30. 8..10:
  31. if (i<8) or (i>10) then
  32. halt(1);
  33. end;
  34. end;
  35. halt(0);
  36. end.