結果
| 問題 |
No.48 ロボットの操縦
|
| コンテスト | |
| ユーザー |
iwbchi
|
| 提出日時 | 2020-08-19 11:33:15 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 32 ms / 5,000 ms |
| コード長 | 241 bytes |
| コンパイル時間 | 202 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-10-12 03:36:54 |
| 合計ジャッジ時間 | 1,756 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 |
ソースコード
X = int(input())
Y = int(input())
L = int(input())
T = 0
A = abs(int(X / L))
B = abs(int(Y / L))
if not X % L == 0:
A += 1
if not Y % L == 0:
B += 1
if Y < 0:
T += 2
elif X == 0:
pass
else:
T += 1
print(T + A + B)
iwbchi