結果
問題 |
No.48 ロボットの操縦
|
ユーザー |
|
提出日時 | 2017-08-08 12:32:29 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 295 bytes |
コンパイル時間 | 299 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-10-12 00:09:53 |
合計ジャッジ時間 | 1,722 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 WA * 1 |
ソースコード
# -*- coding: utf-8 -*- X = int(input()) Y = int(input()) L = int(input()) x_count = abs(X)//L x_count = x_count+1 if abs(X)%L>0 else x_count y_count = abs(Y)//L y_count = y_count+1 if abs(Y)%L>0 else y_count y_lot = 0 if Y>=0 else 1 x_lot = 0 if X==0 else 1 print(x_count+y_count+y_lot+x_lot)