题解列表

筛选

题解 2004: 统计成绩

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

题解 2002: 计算数字个数

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

最简单的解法

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

python_周瑜的反间计

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

宏定义之找最大数

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

宏定义之闰年判断

摘要:```cpp #include using namespace std; #define LEAP_YEAR(y) if((y%100!=0&&y%4==0)||y%400==0){cout……