結果
問題 |
No.48 ロボットの操縦
|
ユーザー |
|
提出日時 | 2019-04-17 19:00:14 |
言語 | Nim (2.2.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 206 bytes |
コンパイル時間 | 3,236 ms |
コンパイル使用メモリ | 65,732 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-01 23:09:55 |
合計ジャッジ時間 | 4,113 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 WA * 1 |
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 8) Warning: imported and not used: 'sequtils' [UnusedImport]
ソースコード
import sequtils, strutils, math var x, y, l = stdin.readLine.parseInt ans = 0 if x != 0: ans.inc x = x.abs if y < 0: ans.inc y = y.abs ans.inc ceil(x/l).toInt ans.inc ceil(y/l).toInt echo ans