题解列表

筛选

二级C语言-温度转换 题解

摘要:解题思路:这题就是转换温度,从-100度到150度。注意事项:每个温度隔着5度!参考代码:#include<bits/stdc++.h>using namespace std;int f;int wd……

[编程入门]成绩评定

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int n;int main(){    scanf("%d",&n);    if……

Minesweeper遍历

摘要:参考代码:#include<iostream> #include<cstring> using namespace std; int dx[8]={1,0,-1,0,1,1,-1,-1}; i……

二级C语言-分段函数

摘要:解题思路:直接按照题目的意思判断输出。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;double x;double f(double x……

奖学金(C++结构体算法)

摘要:解题思路:使用结构体设置比总分,比语文,再比学号,定义,用一个数组输入,在排序加入结构体,最后输出;参考代码:#includeusing namespace std;int n;struct stu{……

十->二进制转换

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;string decToBin(int n){    string ans;    ……

内部收益率

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() {     int T, CF, sum;     // ……

c++蚂蚁感冒

摘要:解题思路:记录第一只蚂蚁的位置和方向,因为速度都是一样的,所以在(蚂蚁前面&&方向相同的蚂蚁)||(蚂蚁后面&&方向相反的)一定不会被感染