結果
| 問題 |
No.48 ロボットの操縦
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-05-31 16:33:57 |
| 言語 | Python2 (2.7.18) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 225 bytes |
| コンパイル時間 | 41 ms |
| コンパイル使用メモリ | 6,944 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-06 13:00:12 |
| 合計ジャッジ時間 | 1,001 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / 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)