题解列表

筛选

最简单求法

摘要:解题思路:    初步判断:                想要最简分数,必须是一个奇数 一个偶数。40是偶数,分子必须是奇数。但并不是所有的奇数不能被40整除    再次判断:       &

电报加密;

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main(){    string a;   whil……

定义宏,判断是否为闰年

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#define LEAP_YEAR(y)  y%100 ==0 && y%4 ==0 && y……

输出最高分数的学生姓名

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<string.h>struct student{    int score;   ……