結果
問題 |
No.48 ロボットの操縦
|
ユーザー |
![]() |
提出日時 | 2023-08-02 17:18:38 |
言語 | Nim (2.2.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 193 bytes |
コンパイル時間 | 3,735 ms |
コンパイル使用メモリ | 63,840 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-12 13:21:49 |
合計ジャッジ時間 | 4,641 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 WA * 6 |
ソースコード
import strutils var x, y, l = parseInt readLine stdin cnt = 0 if y < 0: cnt.inc 2 elif x != 0: inc cnt cnt += x.abs.pred div l + 1 if y != 0: cnt += y.abs.pred div l + 1 echo cnt