摘要:
传送门 A Two Elevators 注意读题,读懂题目即可,比较两部电梯到达1楼所需要的时间。 #include<bits/stdc++.h> #define int long long using namespace std; const int N = 200010; int n; void 阅读全文
摘要:
传送门 A Remove Duplicates 记录每个数最后出现的位置,最后按照顺序输出即可 #include<bits/stdc++.h> #define int long long using namespace std; const int N = 200010; int a[N]; int 阅读全文
摘要:
传送门 A Wrong Subtraction #include<bits/stdc++.h> #define int long long using namespace std; const int N = 200010; int a[N], b[N]; void solve() { int n, 阅读全文
摘要:
传送门 A Yura's New Name 签到题,怪我没有皇后看样例子,意思就是把有^和_组成的字符串加若干个字符使得全部都是笑脸(^^或^_^),所一我们遍历一下字符串,把连着都是两个的地方加上^即可,最后处理一下开头和结尾就行 #include<bits/stdc++.h> #define i 阅读全文
摘要:
题目链接 本场比赛还行,就是要提高思考的速度,速度太慢导致排名靠后了,继续加油,早日绿名。 A #include<iostream> #include<cstring> #include<algorithm> #include<map> #include<set> using namespace s 阅读全文
摘要:
A 小d和答案修改 就简单的签到题 #include<iostream> using namespace std; int main() { string s; cin >> s; for (int i = 0; i < s.size(); i++) { if (s[i] >= 'a' && s[i 阅读全文