#include using namespace std; typedef signed long long ll; #undef _P #define _P(...) (void)printf(__VA_ARGS__) #define FOR(x,to) for(x=0;x>X>>Y>>L; if(Y>0) { tot+=(Y+(L-1))/L; Y=0; } if(Y<0) { tot+=2+(-Y+(L-1))/L+(abs(X)+(L-1))/L; } else if(X) { tot+=1+(abs(X)+(L-1))/L; } cout<