题解列表

筛选

宏定义之找最大数

摘要:```cpp #include using namespace std; #define da2(a,b,c) float x1,x2;x1=max(a,b);x2=max(x1,c);cout……

python_周瑜的反间计

摘要:解题思路:1.按照题意定义列表,用一个while来输入case,并且当输入为-1时结束程序。2.输入询问的次数,for循环输入要查找的文件。 3.用count()函数(或者index()函数,但这里前……

最简单的解法

摘要:解题思路:根本不用在数组里移动元素啊,直接输出就行,话不多说,直接看代码!注意事项:参考代码#include<stdio.h> void app(int n); int main() {    ……

题解 2002: 计算数字个数

摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() {     char arr[100];  //定义一个数组,用来存储字符串     int i,j=0……

题解 2004: 统计成绩

摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() {     int arr[10],i,fail=0;     double sum = 0; //平均……

简单粗暴,通俗易懂

摘要:解题思路:三个数,分成个个数粗暴循环(每个三位数都尝试一遍);注意事项:是从100 开始循环,不是111参考代码:#include<bits/stdc++.h>using namespace std;……