摘要:
题目链接:https://codeforces.com/contest/1332 A. Exercising Walk 可走的最远距离:左:x-x1,右:x2-x,下:y-y1,上:y2-y 如果可以移动,通过折返行走,两个相对方向至少有一个可以消为0,然后看余下步数是否小于等于该方向可走的最远距离 阅读全文
摘要:
题目链接:https://codeforces.com/contest/1328 A. Divisibility Problem 签到题。 #include <bits/stdc++.h> using namespace std; typedef long long ll; void solve() 阅读全文