题解列表
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 = ……
二级C语言-自定义函数
摘要:解题思路: 采用递归求解注意事项: 包含#include<iomanip>以保证输出4位小数;参考代码:#include<iostream>
using namespace std;
#inclu……
计算素数和(用C++)
摘要:参考代码:#include<iostream>
using namespace std;
bool isprime(int x)
{
int count = 0;
for (int i ……
2^k进制数:组合数
摘要:解题思路:组合数注意事项:参考代码:#include<iostream>
#include<cmath>
using namespace std;
long long c(int n, int ……
最后一个点卡数组小于k和多组数据
摘要:#include<bits/stdc++.h>
using namespace std;
int main()
{
int t,k;
while(cin>>t>>k)
……
不用考虑斜率不存在和分母为0的方法——余弦定理
摘要:解题思路:参考代码:#include<bits/stdc++.h>
using namespace std;
#define PI 3.14159265358979323846
void sol……