题解列表

筛选

字符逆序 (C++代码)

摘要:解题思路:注意事项:参考代码:#include <iostream> #include <string.h> using namespace std; int main() { c……

校门外的树 (C++代码)数组标记,简洁

摘要:解题思路: 由于马路上有一些区域要用来建地铁。这些区域用它们在数轴上的起始点和终止点表示。已知任一区域的起始点和终止点的坐标都是整数,区域之间可能有重合的部分。数组初始化为0,如果在区域里的全部标记为……

筛排处理 (C++代码)

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int f(int a,int b) { return a<b; }……

第几天 (C++代码)

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { int n,y,r; int a[12]……

神奇的fans (C++代码)

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; whi……

破解简单密码 (C++代码)

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { string a; while(cin>……