题解列表
1115: DNA(c++代码)
摘要:```cpp
#include
using namespace std;
void PaintDNA(int a,int b)
{
for(int i=1;i……
1116: IP判断(c++代码)
摘要:```cpp
#include
#include
using namespace std;
int main()
{
int q,len,t;
string s;
……
1117: K-进制数
摘要:```cpp
#include
using namespace std;
int K;
int cl(int num,int front)
{
int temp=0;
f……
1118: Tom数(c++代码)
摘要:```cpp
#include
#include
using namespace std;
int main()
{
char *str;
int tom;
w……
1120: C语言训练-"水仙花数"问题2
摘要:简简单单,回味无穷
```cpp
#include
using namespace std;
int s3(int g)
{
return g*g*g;
}
int main(……
1121: C语言训练-8除不尽的数
摘要:只是计算
```cpp
#include
using namespace std;
int main()
{
cout……
贪心算法—局部最优解(C语言)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>
#define max(x,y) x>y?x:y
#define V 17//移动速度
#define sk 60//技能移动距……
2905: 最大值和最小值的差(max_element)
摘要:解题思路:一个最简单的思路,把输入的数扫描一遍,找到最大值和最小值,相减即可。需要注意将两个变量初始化。参考代码:#include<iostream>
#include<set>
using na……
科创社每日一题 该题需要知道的东西
摘要:解题思路:这道题 主要考察了字符串函数的使用,在这里我给大家写一下字符串函数的模拟实现,让大家更加理解字符串函数,从而让大家使用的更舒服首先说一下字符串函数有哪些1、strlen 求字符串函数的长度2……