题解列表

筛选

字符串比较(C语言)

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int StrCmp(char *str1, char *str2){    int min =……

复数求和(C语言)

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>typedef struct LNode{    struct LNode *next;//下一……

Python 解题思路

摘要:解题思路:先将该数开平方,然后保留整数重新开方即可注意事项:保留整数遵循四舍五入原则,如果舍去导致开方比n小,记得加上1参考代码:import mathn = int(input())b = math……

python3的datetime扩展库和列表完成的日期排序

摘要:解题思路:刚刚学到datetime扩展库,正好借此练习一下,不过不知道为什么不能通过....-_-b1.首先从键盘一行一行输入日期,结果转换存放到datetime变量中2.集中放到一个大列表3.全部数……

图形输出(C语言)

摘要:解题思路:。。。。。。注意事项:。。。。。。参考代码:#include <stdio.h>int main(){    printf(" X | X | X\n");    printf("---+-……

单词个数统计(C语言)

摘要:解题思路:。。。。。。注意事项:。。。。。。参考代码:#include <stdio.h>#include <string.h>int main(){    char str[80];    int ……

勾股数(C语言)

摘要:解题思路:三重for循环+勾股定理注意事项:循环的判断条件参考代码:#include <stdio.h>int main(){    int a,b,c;//三角形三条边    for ( a = 1……