結果
| 問題 | No.48 ロボットの操縦 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-05-31 16:33:57 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 225 bytes |
| 記録 | |
| コンパイル時間 | 139 ms |
| コンパイル使用メモリ | 77,556 KB |
| 最終ジャッジ日時 | 2025-12-03 15:25:50 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 WA * 21 |
ソースコード
# -*- coding:utf-8 -*- import math if __name__ == "__main__": x = input() y = input() l = input() ans = math.ceil(abs(x) / l) + math.ceil(abs(y) / l) if x != 0 and y != 0: ans += 1 if x < 0: ans += 1 print int(ans)