题解列表

筛选

每天2道程序题的纯小白

摘要:解题思路:注意事项:#include<stdio.h> void Fun(char x, int y, int* num); int ju[11][11] = { 0 }; int main()……

一种较为代码较为简便的方式

摘要:参考代码:                #include<stdio.h>#include<stdlib.h>#define cube(a) (a)*(a)*(a)           #宏定义三次……

题目 1256: 诡秘的余数题解

摘要:解题思路: 因为输入的被除数可能比较大,超出Int类型的范围,所以用字符串存数,一位一位求解。参考代码:#include<iostream> #include<cstring> using nam……

c语言代码解决问题

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

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){    int n;    double sum_time = 0.0;    s……

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int n,a[100],i;    scanf("%d", &n);    for(i=0;i<n;i+……

1782基础解法(Python)

摘要:解题思路:一个更通用的解法注意事项:学习字典的元素添加方式和对字典进行简单排序的方法参考代码:import sysdic = {}for data in sys.stdin :    dic[data……

1806一行解(Python)

摘要:解题思路:将sys.stdin的内容转换为列表形式后打印即可注意事项:参考代码:print(input().split()[1])……