tw38390.pp 345 B

1234567891011121314151617181920212223
  1. program tw38390;
  2. {$MODE Delphi}
  3. uses SysUtils;
  4. var
  5. s: String;
  6. x: UInt64;
  7. begin
  8. s := '20000000000';
  9. x := UInt64.Parse(s);
  10. WriteLn(x);
  11. if x <> 20000000000 then
  12. Halt(1);
  13. UInt64.TryParse(s, x);
  14. WriteLn(x);
  15. if x <> 20000000000 then
  16. Halt(2);
  17. x := StrToQWord(s);
  18. WriteLn(x);
  19. if x <> 20000000000 then
  20. Halt(3);
  21. end.