結果
| 問題 | 
                            No.48 ロボットの操縦
                             | 
                    
| コンテスト | |
| ユーザー | 
                             tera_3939
                         | 
                    
| 提出日時 | 2018-02-05 21:44:18 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 372 bytes | 
| コンパイル時間 | 224 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 10,752 KB | 
| 最終ジャッジ日時 | 2024-07-08 07:23:50 | 
| 合計ジャッジ時間 | 1,653 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 3 WA * 22 | 
ソースコード
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
    operation += abs(x // max_length + x % max_length)
    operation += abs(y // max_length + y % max_length)
    print(operation)
if __name__ == '__main__':
    main()
            
            
            
        
            
tera_3939