摘要: LeetCode 第 121 场双周赛 大于等于顺序前缀和的最小缺失整数 代码: class Solution { public: int missingInteger(vector<int>& nums) { int n = nums.size(); set<int> s; for(auto x 阅读全文
posted @ 2024-01-18 16:21 value0 阅读(4) 评论(0) 推荐(0) 编辑
摘要: Codeforces Round 920 (Div. 3) A - Square 解题思路: 取左下角和右上角。 代码: #include <bits/stdc++.h> using namespace std; using ll = long long; using pii = pair<ll, 阅读全文
posted @ 2024-01-18 16:09 value0 阅读(11) 评论(0) 推荐(0) 编辑