真新镇小智要成为宝可梦大师
真新镇小智要成为宝可梦大师
全部文章
分类
题解(2)
归档
标签
去牛客网
登录
/
注册
真新镇小智要成为宝可梦大师的博客
全部文章
(共35篇)
题解 | xxx定律
#include <iostream> using namespace std; int main() { int n; while(cin>>n){ int cnt=0; while(n!=1){ i...
2025-03-20
0
15
题解 | 吃糖果
#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
19
题解 | 谁是你的潜在朋友
#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
12
题解 | #统计字符串中各字母字符对应的个数#
思路:先定义一个map<char,int>m; 然后再在获取的字符串里统计(作者使用的for循环语法是-----for(数据类型 实例化数据:循环范围)) 我们可以先查找是否存在该字符 (若不存在,迭代器最后会被赋值为m.end(),若存在会被赋值为字...
C++
2022-05-05
2
397
题解 | #数组元素反转#
我这么写很容易理解 0和5 ,1和4 ,2和3交换;而0+5=1+4=2+3;就可以按照我那么取交换 #include <iostream> using namespace std; int main() { int arr[6] ...
C++
2022-04-24
0
268
首页
上一页
1
2
3
4
下一页
末页