编写题解 1165: 明明的随机数(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstdio> #include<set> using namespace std; set<int> s…… 题解列表 2021年12月12日 0 点赞 0 评论 365 浏览 评分:9.9
编写题解 1159: 偶数求和(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstdio> using namespace std; int main(){ int a,b,n=0…… 题解列表 2021年12月12日 0 点赞 0 评论 729 浏览 评分:0.0
使用队列思想解题(JAVA代码) 摘要:解题思路:* 思路: * * 整个字符串可以看成很多段无重复的字串重叠拼接而成 * 只要筛选出最长的字串就可以了 * 如:asdfgdfg 字串是:asdfg,fgd,gdf,dfg * *…… 题解列表 2021年12月12日 0 点赞 0 评论 379 浏览 评分:9.9
数列排序(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<vector> #include<cstdio> using namespace std; vector<…… 题解列表 2021年12月12日 0 点赞 0 评论 354 浏览 评分:0.0
理解怎样在判断时只输出一次 摘要:解题思路:因为数组是已排列好的,所以只需要找出需要插入的位置,通过循环比较找出位置,在循环中判段循环注意只输出一次。即可注意事项:参考代码:#include<stdio.h>int main(){in…… 题解列表 2021年12月12日 0 点赞 0 评论 312 浏览 评分:9.9
1071: 二级C语言-阶乘公式求值 摘要:注意 fact 函数的返回值类型是 double。(不是 double 的话 100 的测试值无法通过)#include<bits/stdc++.h> using namespace std; …… 题解列表 2021年12月12日 0 点赞 0 评论 283 浏览 评分:0.0
1067: 二级C语言-分段函数 摘要:#include<bits/stdc++.h> using namespace std; int main() { double x; cin >> x; if…… 题解列表 2021年12月12日 0 点赞 0 评论 269 浏览 评分:0.0
1047: [编程入门]报数问题 摘要:import java.io.*; /** * 公式法直接解决。 */ public class Main { public static BufferedReader …… 题解列表 2021年12月11日 0 点赞 0 评论 677 浏览 评分:9.9
[编程入门]水仙花数判断 3个for循环 摘要: for i in range(10): for j in range(10): for k in range(10): …… 题解列表 2021年12月11日 0 点赞 0 评论 591 浏览 评分:9.9
C++[编程入门]数字的处理与判断 摘要:解题思路:用pow函数解决各自输出问题注意事项:参考代码:#include#includeusing namespace std;int main(){ int x; cin>>x; int i=0,…… 题解列表 2021年12月11日 0 点赞 0 评论 612 浏览 评分:9.9