結果
問題 |
No.48 ロボットの操縦
|
ユーザー |
![]() |
提出日時 | 2019-08-22 08:29:58 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 150 bytes |
コンパイル時間 | 302 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 52,224 KB |
最終ジャッジ日時 | 2024-10-11 23:42:10 |
合計ジャッジ時間 | 2,103 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 WA * 1 |
ソースコード
from math import ceil X,Y,L = int(input()),int(input()),int(input()) ans = ceil(abs(X)/L) + ceil(abs(Y)/L) if X !=0:ans+=1 if Y < 0:ans +=1 print(ans)