C++简单解法 解题思路:重要的是要有思路,题目不难,多试几次就能做出自己的正确答案注意事项:参考代码:#include#includeusingnamespacestd;intmain(void){intn;cin>>n;intx, 题解列表 2025年04月06日 0 点赞 0 评论 478 浏览 评分:0.0
平行数组+递推 摘要:1.实在是不会找规律哈但是会模拟递归过程 反正计算是编译器的问题 关我程序设计什么事2.嵌套递归 具体表现是 n>=3:(1) An=A(n-1)+(up)A(n-2)(up这里表示上车人…… 题解列表 2025年04月06日 0 点赞 0 评论 385 浏览 评分:0.0
报时助手·——最朴实无华的解法 解题思路:注意事项:参考代码:#includeusingnamespacestd;stringhour[]={"zero","one","two","three","four","five","six","seven", 题解列表 2025年04月06日 0 点赞 0 评论 341 浏览 评分:0.0
回文数字-将数字转换为字符串进行比较 解题思路:注意事项:参考代码:#include#include#includeusingnamespacestd;//判断数字是否是回文数boolisPalindrome(intnum){strings=to_string(num);intlen=s. 题解列表 2025年04月06日 0 点赞 0 评论 505 浏览 评分:0.0
干就完了,bro 解题思路:注意事项:参考代码:#include#include#includeusingnamespacestd;intmain(intargc,charconst*argv[]){std::ios::sync_with_stdio(false 题解列表 2025年04月06日 0 点赞 0 评论 351 浏览 评分:0.0
干就完了,bro 解题思路:注意事项:参考代码:#include#includeusingnamespacestd;dequeresult;dequedeq;/*voidinIt(strings){for(charc:s){result.push_back(c) 题解列表 2025年04月06日 0 点赞 0 评论 364 浏览 评分:0.0
数字接龙-暴力 摘要:注意事项:找到一个答案就停止深度遍历避免超时参考代码:#include<bits/stdc++.h>usingnamespacestd;type…… 题解列表 2025年04月05日 5 点赞 1 评论 1509 浏览 评分:10.0
巧用string和map 摘要:解题思路:利用string特性就行,然后用map来计数参考代码:#include<bits/stdc++.h>usingnamespacestd;map&l…… 题解列表 2025年04月05日 1 点赞 0 评论 535 浏览 评分:10.0
矩阵转置(模拟) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;constintN&…… 题解列表 2025年04月04日 0 点赞 0 评论 385 浏览 评分:0.0
盐水的故事(模拟) 摘要:解题思路:模拟注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;intmain(){…… 题解列表 2025年04月04日 0 点赞 0 评论 372 浏览 评分:0.0