結果
問題 |
No.48 ロボットの操縦
|
ユーザー |
![]() |
提出日時 | 2023-08-02 17:58:36 |
言語 | Nim (2.2.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 207 bytes |
コンパイル時間 | 2,730 ms |
コンパイル使用メモリ | 64,560 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-12 14:07:36 |
合計ジャッジ時間 | 3,514 ms |
ジャッジサーバーID (参考情報) |
judge / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
ソースコード
import strutils var x, y, l = parseInt readLine stdin cnt = 0 if y < 0: cnt.inc 2 elif x != 0: inc cnt if x != 0: cnt += x.abs.pred div l + 1 if y != 0: cnt += y.abs.pred div l + 1 echo cnt