結果
問題 |
No.48 ロボットの操縦
|
ユーザー |
|
提出日時 | 2020-06-01 10:11:53 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 426 bytes |
コンパイル時間 | 159 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-11-21 07:03:16 |
合計ジャッジ時間 | 1,803 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 18 WA * 7 |
ソースコード
from math import ceil X = int(input()) Y = int(input()) L = int(input()) # print(X/L, ceil(X/L), Y/L, ceil(Y/L), abs(ceil(X/L)) + abs(ceil(Y/L))) if Y >= 0: if X!=0 and Y!=0: print(ceil(abs(X/L)) + ceil(abs(Y/L)) + 1) else: print(ceil(abs(X/L)) + ceil(abs(Y/L))) else: if X!=0 and Y!=0: print(ceil(abs(X/L)) + ceil(abs(Y/L)) + 3) else: print(ceil(abs(X/L)) + ceil(abs(Y/L)) + 2)