题解列表

筛选

结构体之成绩统计2

摘要:- 解题思路:用两个函数完成输入与输出,具体见代码注释 - 代码如下: ```c #include #include typedef struct stduent { char i……

2820: 含k个3的数(python)

摘要:解题思路:注意事项:参考代码:m,k = input().split() y = "NO" if int(m) % 19 == 0 and m.count("3") == int(k):  ……

2819: 数字反转(python)

摘要:解题思路:注意事项:参考代码:n = int(input()) if n < 0:     print("-",end = "")     n = -n n = str(n)[::-1]……

结构体之成绩记录

摘要:解题思路:用结构体数组来解决问题注意事项:见代码参考代码:#include <stdio.h>typedef struct student{ char id[20]; char name[20]; i……

买图书的小明

摘要:解题思路:注意事项:参考代码:#includeint main(){ double n,m,s; scanf("%lf %lf",&n,&m); s=n-0.8*m; if(n==10&&m==1) ……

2815: 求特殊自然数(python)

摘要:解题思路:注意事项:参考代码:for a in range(1,7):     for b in range(0,7):         for c in range(1,7):        ……

1332: 津津的储蓄计划(python)

摘要:解题思路:注意事项:参考代码:m = 0 x = 0 month = 1 isTrue = True while True:     try:         n = int(input(……

scanf和gets的混合使用

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    char a[1001];    int n;    scanf("%d",&n);//scanf结束回车……