1074,直接通过模运算来解决 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int isM(char *n) { int …… 题解列表 2025年05月01日 0 点赞 2 评论 600 浏览 评分:10.0
set与stringstream字符串流 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ …… 题解列表 2025年05月01日 1 点赞 0 评论 295 浏览 评分:10.0
单词个数统计(C++) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ …… 题解列表 2025年05月01日 1 点赞 0 评论 414 浏览 评分:10.0
明明的随机数(set容器自动排序和去重) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){&…… 题解列表 2025年05月01日 1 点赞 0 评论 372 浏览 评分:10.0
三种方法求解斐波那契数列 摘要:方法一:递推法#include<bits/stdc++.h>usingnamespacestd;intmain(){&nbs…… 题解列表 2025年05月01日 0 点赞 0 评论 417 浏览 评分:10.0
T1011最大公约数和最小公倍数 摘要:解题思路:注意事项:参考代码:#(method 1th:)a,b=map(int ,input().strip().split())def gcd(a,b): if b==0…… 题解列表 2025年05月02日 2 点赞 0 评论 944 浏览 评分:10.0
只有50分的看过来 摘要:解题思路: 思路无非就是找到最小值和最大值的下标,然后根据下标分别与第一个数和最后一个数进行交换注意事项: 题目要求的交换其实有先后顺序,即先将第一个数和最小值交换,再将最后一个数和最大值交换,这就会…… 题解列表 2025年05月03日 0 点赞 0 评论 643 浏览 评分:10.0
T1017 完数判断 摘要:解题思路:注意事项:参考代码:n=int(input())for a in range(2,n+1,2): b=[1] for i in range…… 题解列表 2025年05月04日 0 点赞 0 评论 765 浏览 评分:10.0
菜鸟记录11111111 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b=0,c[5]; scanf(&q…… 题解列表 2025年05月06日 10 点赞 1 评论 1455 浏览 评分:10.0
求10000以内n的阶乘(c语言) 摘要:解题思路:循环里嵌套一个乘法:把大数a存到数组里,让数组的每一个数都乘以另一个数b,数值溢出就向前进位。注意事项:参考代码:#include<stdio.h>intmain(v…… 题解列表 2025年05月08日 1 点赞 0 评论 520 浏览 评分:10.0