1151: C语言训练-计算一个整数N的阶乘 摘要:解题思路:注意事项:注意阶乘不要超过20,否则超了LONG LONG的范围参考代码:#include<bits/stdc++.h>using namespace std;int main(){ lon…… 题解列表 2024年12月01日 1 点赞 0 评论 273 浏览 评分:9.9
1766: 循环入门练习3题解 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int sum=0; int n; cin…… 题解列表 2024年12月01日 1 点赞 0 评论 193 浏览 评分:9.9
1765: 循环入门练习2题解 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int sum=0; for(int i=0;i…… 题解列表 2024年12月01日 1 点赞 0 评论 182 浏览 评分:9.9
信息学奥赛一本通T1260-拦截导弹 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义数组a和b,长度为1100,n初…… 题解列表 2024年12月01日 0 点赞 0 评论 147 浏览 评分:0.0
一种可能比较神奇的做法(新手) 摘要:解题思路:或许会比较简单粗暴。直接先分别计算两个日期从取值范围中最小的日期到这一天的天数,再进行做差,便得出结果。(本人为大一新生,初学者,可能在尝试编写题解时,出现不足和错误,希望得到您的谅解,谢谢…… 题解列表 2024年12月01日 0 点赞 0 评论 307 浏览 评分:6.0
本题使用埃氏筛法来求解 摘要:解题思路:先将0~n以内的所有数都保存进数组注意事项:参考代码:#include <stdio.h>#include<math.h>int main(){ int n; scanf("%d",&n);…… 题解列表 2024年12月01日 0 点赞 0 评论 264 浏览 评分:0.0
信息学奥赛一本通T1340-扩展二叉树 ????? 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 全局变量,存储输入的字符串 string s; // 全局变量,当…… 题解列表 2024年12月01日 0 点赞 0 评论 156 浏览 评分:0.0
2146: 信息学奥赛一本通T1317-组合的输出 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <stdio.h> #include <stdlib.h> using namespace std; …… 题解列表 2024年12月01日 0 点赞 0 评论 473 浏览 评分:9.9
拆分位数《三位数》 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin>>n; cout<<n%10<…… 题解列表 2024年12月01日 0 点赞 0 评论 574 浏览 评分:0.0
新人小白仅供参考 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int N; struct f{ char num[10]; char name[10]; …… 题解列表 2024年12月01日 1 点赞 0 评论 429 浏览 评分:2.0