摘要: SMU Summer 2023 Contest Round 2 A. Treasure Hunt 当\(x1 - x2\)的差值与\(y1-y2\)的差值都能被\(x,y\)整除时,且商之和为2的倍数就一定可以到达 #include<bits/stdc++.h> #define endl '\n' 阅读全文
posted @ 2023-07-11 16:14 Ke_scholar 阅读(5) 评论(0) 推荐(0) 编辑
摘要: SMU Summer 2023 Contest Round 1 A. The Contest 当 \(m\) 为 \(0\) 和 完成时间大于最后一个时刻时,说明都无法在规定条件内完成,输出\(-1\). 将时间段拆开放一个数组循环, 找到第一个大于等于完成时间的位置,若此时\(i\) 为奇数, 说 阅读全文
posted @ 2023-07-11 04:05 Ke_scholar 阅读(3) 评论(0) 推荐(0) 编辑