0~1000以内的水仙花数的判断 摘要:解题思路:通过将整数分别分解为100、10、1的倍数,然后将这些因数进行重组,若能按照水仙花数的规则重组成功,即为水仙花数。注意事项:看了一下其他人的解法,发现若不设变量的话,容易使代码看起来比较冗长…… 题解列表 2023年10月20日 0 点赞 0 评论 222 浏览 评分:0.0
使用C++STL库中的优先队列 摘要:解题思路:使用C++中的STL库中的优先队列,使用结构体定义一个比较函数进行排序,之后在主函数中使用优先队列输出注意事项:注意结构体里边比较逻辑的写法,这是容易出错的地方参考代码:#include<i…… 题解列表 2023年10月20日 0 点赞 0 评论 167 浏览 评分:0.0
编写题解 1671: 小九九 摘要:````python for i in range(1,10): for j in range(1,10): if i>=j: print("{1}…… 题解列表 2023年10月20日 0 点赞 0 评论 266 浏览 评分:0.0
验证子串(二种方法) 摘要:解题思路:注意事项:参考代码:第一种强行解题,硬解:#include<stdio.h> #include<string.h> int main() { char a[200]; char…… 题解列表 2023年10月21日 0 点赞 0 评论 393 浏览 评分:0.0
C语言思路简单,易懂!!! 理解万岁 代码简单!!! 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ int n; int num=0; //记三元组的个数 scanf ("%d",&n);…… 题解列表 2023年10月21日 1 点赞 0 评论 238 浏览 评分:0.0
2973: 出现次数超过一半的数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int tong[1005];int main(){ int n; c…… 题解列表 2023年10月21日 0 点赞 0 评论 321 浏览 评分:0.0
2917: 奇数单增序列 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int tong[1005];int main(){ int n; c…… 题解列表 2023年10月21日 0 点赞 0 评论 165 浏览 评分:0.0
1720: 数据结构-基数排序 摘要:解题思路:注意事项:参考代码://sort排序#include <bits/stdc++.h>using namespace std;int a[100005];int main(){ int …… 题解列表 2023年10月21日 0 点赞 0 评论 204 浏览 评分:0.0
2332: 信息学奥赛一本通T1181-整数奇偶排序 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[10005];int main(){ for(int i=1; …… 题解列表 2023年10月21日 0 点赞 0 评论 208 浏览 评分:0.0
汽水瓶(题目要看全,还剩两个空瓶,可向老板借一瓶) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int n; while(~scanf("%d",&n)) { if(n=…… 题解列表 2023年10月21日 0 点赞 0 评论 148 浏览 评分:0.0