摘要:
比赛链接 A 题解 知识点:模拟。 时间复杂度 $O(1)$ 空间复杂度 $O(1)$ 代码 #include <bits/stdc++.h> #define ll long long using namespace std; bool solve() { int a, b, c; cin >> a 阅读全文
摘要:
比赛链接 A 题解 知识点:模拟。 时间复杂度 $O(n)$ 空间复杂度 $O(n)$ 代码 #include <bits/stdc++.h> #define ll long long using namespace std; bool solve() { string a, b; cin >> a 阅读全文
摘要:
比赛链接 A 题解 知识点:贪心,模拟。 遇到没用过的数字就给个字母,遇到用过的数字就对照字母是否一致。 时间复杂度 $O(n)$ 空间复杂度 $O(n)$ 代码 #include <bits/stdc++.h> #define ll long long using namespace std; i 阅读全文