結果
問題 |
No.48 ロボットの操縦
|
ユーザー |
|
提出日時 | 2017-08-06 22:47:08 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 265 bytes |
コンパイル時間 | 98 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-10-11 22:58:59 |
合計ジャッジ時間 | 1,544 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 WA * 1 |
ソースコード
x, y ,l= int(input()), int(input()),int(input()) turn = 0 if(y < 0): turn+=2 else: turn+=1 if(abs(y)%l==0): turn+=abs(y)//l else: turn+=abs(y)//l+1 if(abs(x)%l==0): turn+=abs(x)//l else: turn+=(abs(x)//l+1) if(x==0): turn-=1 print(turn)