結果
| 問題 | No.48 ロボットの操縦 |
| コンテスト | |
| ユーザー |
双六
|
| 提出日時 | 2020-07-22 10:18:47 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 57 ms / 5,000 ms |
| コード長 | 480 bytes |
| コンパイル時間 | 261 ms |
| コンパイル使用メモリ | 82,688 KB |
| 実行使用メモリ | 60,160 KB |
| 最終ジャッジ日時 | 2025-01-03 08:09:25 |
| 合計ジャッジ時間 | 2,664 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 |
ソースコード
# import sys; input = sys.stdin.buffer.readline
# sys.setrecursionlimit(10**7)
from collections import defaultdict
con = 10 ** 9 + 7; INF = float("inf")
import copy
def getlist():
return list(map(int, input().split()))
#処理内容
def main():
X = int(input())
Y = int(input())
L = int(input())
state = 0
if X != 0:
state = 1
if Y < 0:
state = 2
ans = state + int((abs(X) - 1) // L + 1) + int((abs(Y) - 1) // L + 1)
print(ans)
if __name__ == '__main__':
main()
双六