結果
問題 | No.48 ロボットの操縦 |
ユーザー |
|
提出日時 | 2022-03-07 17:03:48 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 406 bytes |
コンパイル時間 | 332 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-07-22 12:06:58 |
合計ジャッジ時間 | 1,851 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 WA * 13 |
ソースコード
X=int(input()) Y=int(input()) L=int(input()) if (X+Y)%L == 0: if X==0 or Y==0: print(int((abs(X)+abs(Y))/L)) elif X < 0: print(int((abs(X)+abs(Y))/L)+2) else: print(int((abs(X)+abs(Y))/L)+1) else: if X==0 or Y==0: print(int((abs(X)+abs(Y))/L)+1) elif X < 0: print(int((abs(X)+abs(Y))/L)+3) else: print(int((abs(X)+abs(Y))/L)+2)