結果
問題 | No.48 ロボットの操縦 |
ユーザー |
|
提出日時 | 2020-03-30 22:55:34 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 27 ms / 5,000 ms |
コード長 | 285 bytes |
コンパイル時間 | 666 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-06-23 06:00:49 |
合計ジャッジ時間 | 1,827 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
ソースコード
p=[int(input()) for i in range(2)]x,y=map(abs,p)l=int(input())r=0if p[1] >= 0:r+=x//l if x%l==0 else x//l +1r+=y//l if y%l==0 else y//l +1r+=0 if x==0 else 1else:r+=x//l if x%l==0 else x//l +1r+=y//l if y%l==0 else y//l +1r+=1 if y==0 else 2print(r)