結果
| 問題 | 
                            No.48 ロボットの操縦
                             | 
                    
| コンテスト | |
| ユーザー | 
                             tera_3939
                         | 
                    
| 提出日時 | 2018-02-05 21:56:30 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 430 bytes | 
| コンパイル時間 | 95 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 10,752 KB | 
| 最終ジャッジ日時 | 2024-07-08 07:24:28 | 
| 合計ジャッジ時間 | 1,697 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 21 WA * 4 | 
ソースコード
def main():
    x = int(input())
    y = int(input())
    max_length = int(input())
    if x == 0 and y > 0:
        operation = 0
    elif y < 0:
        operation = 2
    else:
        operation = 1
    x = abs(x)
    y = abs(y)
    operation += x // max_length + (0 if x % max_length == 0 else 1)
    operation += y // max_length + (0 if x % max_length == 0 else 1)
    print(operation)
if __name__ == '__main__':
    main()
            
            
            
        
            
tera_3939