Hifipsysta-1139题-C语言训练-求素数问题(C++代码) 摘要:```cpp #include using namespace std; bool is_prime(int n){ for(int i=2;i>n; for(int…… 题解列表 2022年02月03日 0 点赞 0 评论 310 浏览 评分:0.0
通过取余,循环来实现各种不同输入情况的对应密码 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<string>int main(){ string s; cin…… 题解列表 2022年02月02日 0 点赞 0 评论 287 浏览 评分:0.0
Cylinder(C++代码) 摘要:解题思路:注意事项:1.double类型 2.w>0参考代码:#include <iostream>#define PI 3.141592653589793238#inc…… 题解列表 2022年02月02日 0 点赞 0 评论 566 浏览 评分:0.0
1064: 二级C语言-阶乘数列 摘要:解题思路:比较简单的输出方法。注意事项:1.结果数据比较大,用 double或long double 类型比较合适。 2.使用scientific进行科学计算法输出,需添加…… 题解列表 2022年02月02日 0 点赞 0 评论 338 浏览 评分:0.0
[CSP-J2019] 数字游戏 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std; int main(){ string s; cin>>s; int i,l,t=…… 题解列表 2022年02月02日 0 点赞 0 评论 392 浏览 评分:9.9
编写题解 1039: [编程入门]宏定义之闰年判断 摘要:解题思路:注意事项:参考代码:#include<iostream> #define LEAP_YEAR(y) (y%4==0&&y%100!=0)||(y%100==0&&y%400==0) us…… 题解列表 2022年02月02日 0 点赞 0 评论 308 浏览 评分:0.0
题解 1035: [编程入门]自定义函数之字符类型统计 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<string> using namespace std; void judge(string a, int …… 题解列表 2022年02月02日 0 点赞 0 评论 225 浏览 评分:0.0
Hifipsysta-1115题-DNA(C++代码)二维数组拼接法 摘要:```cpp #include using namespace std; const int MAXN=15; char matrix[MAXN][MAXN]; void const…… 题解列表 2022年02月01日 0 点赞 0 评论 638 浏览 评分:0.0
Hifipsysta-1169题-绝对值排序(C++代码)自定义排序规则法 摘要:基本思路: ① 设置排序规则,按照绝对值从大到小(见arrange_rule函数) ② 每扫描一行就把需要排序的元素全部装入向量vect ③ 采用algorithm库中的sort函数进行排序,使…… 题解列表 2022年02月01日 0 点赞 0 评论 456 浏览 评分:2.0
SET集合-2630-题解 摘要:SET函数总结函数功能时间复杂度insert插入一个元素O(log n)erase删除一个元素O(log n)count统计集合中某个元素的个数O(log n)size获取元素个数O(1)clear清…… 题解列表 2022年01月31日 0 点赞 0 评论 492 浏览 评分:9.9