题解列表
IP判断(sscanf格式化读入)
摘要:解题思路:sscanf注意事项:参考代码:#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
cha……
1115: DNA 循环
摘要:解题思路:打印对角线X 第一行单独处理注意事项:参考代码:#include<iostream>
#include<cmath>
using namespace std;
int main()
……
1114: C语言考试练习题_排列(dfs)
摘要:解题思路:dfs全排列注意事项:题目的输出顺序, 依次排除第 4 - 1 个数字参考代码:#include<iostream>
#include<cmath>
using namespace st……
Cylinder最大圆柱体积
摘要:解题思路:pi的精度11位注意事项:参考代码:#include<iostream>
#include<cmath>
using namespace std;
const double pi = ……
Java简单的a+b
摘要:Scanner sc=new Scanner(System.in);
while(sc.hasNext()){
int a=sc.nextInt();
int b=sc.nextInt();
……
DNA打印(新手容易理解)
摘要:解题思路: 先尝试打印一次对称的DNA,然后跑一个循环打印n次注意事项: ① 由于n次循环中,有一行的是重复的,单独拎出来打印; ② 'X'是大写的参考代码:d……
二级C语言-自定义函数
摘要:解题思路: 采用递归求解注意事项: 包含#include<iomanip>以保证输出4位小数;参考代码:#include<iostream>
using namespace std;
#inclu……
IP判断 简单易懂(C语言代码)
摘要:```c
#include
#include
#include
#define lenth 256
// 检查给定的字符串是否为有效的IPv4地址
// 参数s: 表示IPv4地址的字符串……