题解列表
基础训练数列排序 (C++代码)
摘要:解题思路:注意事项:参考代码:#include <iostream>#include <algorithm>using namespace std;int main(){ int n,m[10……
求所给范围内水仙花数并排列 (C++代码)
摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int n,m,a,b,c,d; while(cin>>……
判断第几天 (C语言代码)
摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std; int fun(int a){ if((a%4==0&&a%100!=0)||(a%400……
求输入数据绝对值 (C++代码)
摘要:解题思路:注意事项:参考代码:#include <iostream>#include <cmath>using namespace std; int main() { float a,b; ……
A+B for Input-Output Practice (IV) (C语言代码)
摘要:解题思路:我这个应该是最简单,不需要太多知识点就能解答问题的方法了,希望能给初学者解惑!1、首先是需要输入一个值,如n的值,它表示了将有n个会进行相加。所以需要一个scanf()函数用来输入n的值;2……
C语言程序设计教程(第三版)课后习题5.5 (Java代码)
摘要:解题思路:注意事项:参考代码:package com.cx;import java.util.Scanner; ublic class Piecewisefunction { publi……
迷宫问题 (C语言代码)
摘要:解题思路:利用广搜遍历注意事项:若无路径则为-1参考代码:#include<stdio.h>char c[200][200];//创建迷宫数组int a,b;//迷宫大小int q[4][2]={-1……
字符串中间和后边*号删除 (C++代码)
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std; void fun(char *a) { int t=strlen(a),……
蓝桥杯算法提高- c++_ch03_02 (C++代码)
摘要:解题思路:用两个1维数组:数组a[i]等于前面得数组b[i]+b[i-1];然后结束循环得时候重新给数组b赋值注意事项:参考代码:#include <iostream>using namespace ……