結果
問題 |
No.48 ロボットの操縦
|
ユーザー |
|
提出日時 | 2022-01-01 11:47:42 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 208 bytes |
コンパイル時間 | 327 ms |
コンパイル使用メモリ | 82,164 KB |
実行使用メモリ | 53,888 KB |
最終ジャッジ日時 | 2024-10-09 23:55:26 |
合計ジャッジ時間 | 2,710 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 WA * 18 |
ソースコード
X = int(input()) Y = int(input()) L = int(input()) ans = abs((X+L-1)//L) + abs((Y+L-1)//L) if X == 0: if Y < 0: ans += 2 else: if Y >= 0: ans += 1 else: ans += 2 print(ans)