fork download
  1. import strutils, math
  2.  
  3. proc solve(): int =
  4. xy = readLine(stdin).split(' ').map(parseDouble)
  5. x = xy[0]
  6. y = xy[1]
  7. ans = sqrt(x*x+y*y + 1.0).floor().toInt()
  8. return ans
  9.  
  10. echo(solve)
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
3 -4
compilation info
prog.nim(4, 0) Error: tabulators are not allowed
stdout
Standard output is empty