Browse Source

fix: overflow the program prints nothing

pull/788/head
lee 4 years ago
parent
commit
f7880cbdf8
  1. 3
      subjects/doop/README.md

3
subjects/doop/README.md

@ -27,11 +27,8 @@ No division by 0$
$ go run . 1 % 0 | cat -e $ go run . 1 % 0 | cat -e
No modulo by 0$ No modulo by 0$
$ go run . 9223372036854775807 + 1 $ go run . 9223372036854775807 + 1
0
$ go run . -9223372036854775809 - 3 $ go run . -9223372036854775809 - 3
0
$ go run . 9223372036854775807 "*" 3 $ go run . 9223372036854775807 "*" 3
0
$ go run . 1 "*" 1 $ go run . 1 "*" 1
1 1
$ go run . 1 "*" -1 $ go run . 1 "*" -1

Loading…
Cancel
Save