真新镇小智要成为宝可梦大师
真新镇小智要成为宝可梦大师
全部文章
分类
题解(2)
归档
标签
去牛客网
登录
/
注册
真新镇小智要成为宝可梦大师的博客
全部文章
(共42篇)
题解 | 统计字符
#include <iostream> #include<map> using namespace std; int main() { string c; string b; while (getline(cin, c)) { map...
2025-03-22
0
39
题解 | 数字反转
#include <iostream> #include <algorithm> using namespace std; string add(string a, string b) { reverse(a.begin(), a.end()); revers...
2025-03-22
0
38
题解 | 今年的第几天?
#include <iostream> using namespace std; // 1 2 3 4 5 6 7 8 9 10 11 12 int arr[27]={0,31,28,31,30,31,30,31,31,30,31,30,31};...
2025-03-20
0
42
题解 | 哈夫曼树
#include <iostream> #include <queue> using namespace std; struct Node { int val; Node* l, * r; Node(int n, Node* a, Node* b) {...
2025-03-20
0
100
题解 | 找最小数
#include <iostream> #include<algorithm> using namespace std; struct Node{ int a,b; }; bool cmp(Node&a,Node&b){ if(a.a<b...
2025-03-20
0
31
题解 | 最大公约数
#include <iostream> using namespace std; int main() { int a, b; while (cin >> a >> b) { // 注意 while 处理多个 case while...
2025-03-20
0
39
题解 | 开门人和关门人
#include <iostream> #include <algorithm> #include <string> using namespace std; struct Node{ string name; string time; }; bo...
2025-03-20
0
42
题解 | xxx定律
#include <iostream> using namespace std; int main() { int n; while(cin>>n){ int cnt=0; while(n!=1){ i...
2025-03-20
0
36
题解 | 吃糖果
#include <iostream> using namespace std; int result=0; void fun(int rest){ if(rest==0)++result; if(rest>=1){ fun(rest-1); ...
2025-03-18
0
47
题解 | 谁是你的潜在朋友
#include <iostream> using namespace std; int main(){ int n,m; cin>>n>>m; int*person=new int[n+1]; int*book=new int[m...
2025-03-16
0
32
首页
上一页
1
2
3
4
5
下一页
末页