結果
問題 | No.48 ロボットの操縦 |
ユーザー |
![]() |
提出日時 | 2016-03-19 00:21:19 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 30 ms / 5,000 ms |
コード長 | 274 bytes |
コンパイル時間 | 114 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-21 18:35:49 |
合計ジャッジ時間 | 1,635 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
ソースコード
#!/usr/bin/env python3#fileencoding: utf-8walk = lambda dist, mv: dist//mv if dist%mv == 0 else dist//mv+1turn = lambda x, y: 2 if y < 0 else (1 if x != 0 else 0)X = int(input())Y = int(input())L = int(input())print(walk(abs(Y), L) + walk(abs(X), L) + turn(X, Y))