摘要: # A. Curriculum Vitae 因为`1`之后不能出现`0`,所以求一下前缀`0`的个数和后缀`1`的个数,然后枚举第一个`1`的位置即可 ```cpp #include using namespace std; #define int long long int32_t main() 阅读全文
posted @ 2023-07-13 15:57 PHarr 阅读(17) 评论(1) 推荐(1) 编辑
摘要: # A. Subtraction Game 答案就是`a+b`此时后手必胜因为无论怎么操作后手都可保证自己取的时候一次全部取完 ```cpp #include using namespace std; void solve(){ int a , b; cin >> a >> b; cout > t; 阅读全文
posted @ 2023-07-13 11:48 PHarr 阅读(31) 评论(0) 推荐(0) 编辑