题解列表

筛选

C语言训练-数字母

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int T(){int i=0,L,n=0;    char a[128];    gets(a);……

1008: [编程入门]成绩评定

摘要:解题思路:这题直接暴力好吧注意事项:要加=,输出是大写参考代码:#include<bits/stdc++.h>using namespace std;int n;int main(){ cin>>n;……

c++蚂蚁感冒

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

字符统计 (Java代码)

摘要:import java.util.Scanner; import java.util.TreeMap; public class Main {     public static voi……

内部收益率

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

十->二进制转换

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

二级C语言-分段函数

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

Minesweeper遍历

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

[编程入门]成绩评定

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