题解列表

筛选

2797: 最高的分数(详细注释)

摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() {     int n, score, max;         //n,表示n个学生,score,每……

字符串的排序,纯傻瓜做法

摘要:解题思路:使用到strcmp函数比较字典数,三个字符串数量有限,完全可以列出所有可能的排列可能方式,按顺序依次比较三个字符串注意事项:puts函数自动换行参考代码://================……

python,基础运算

摘要:解题思路:注意事项:参考代码:nums = list(map(float, input().strip().split()))x, a, b, c, d = numsfx = a * x ** 3 +……

关键宏定义

摘要:解题思路:闰年就是能够被4整除且不能被100整除的年份,或者是能被400整除的年份注意事项:宏定义判断条件的使用参考代码:#include<stdio.h>#define LEAP_YEAR(y) (……

1391: 震宇大神的杀毒软件 6

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int n,m[100];    while (~scanf("%d",&n))……