結果
問題 |
No.48 ロボットの操縦
|
ユーザー |
|
提出日時 | 2015-02-09 22:57:55 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 149 bytes |
コンパイル時間 | 167 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-23 16:50:17 |
合計ジャッジ時間 | 1,221 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 18 WA * 7 |
ソースコード
X = int(raw_input()) Y = int(raw_input()) L = int(raw_input()) ans = 2 if Y < 0 else (1 if X != 0 else 0) + (abs(X)+L-1)/L + (abs(Y)+L-1)/L print ans