题解列表

筛选

【密码】 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(void){ int i, j, n, count, length; char……

【亲和数】 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(void){ int i, j, l, m, n, sum, sum1, hang; scanf("%d", &ha……

【出圈】 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(void){ int i, n, m, x, count; int num[100]; while (scanf("……

母牛生小牛 (C语言代码)

摘要:解题思路:分四年定义注意事项:参考代码:#include <stdio.h>int main(void){ int i, n, a1 = 1, a2 = 0, a3 = 0, a4 = 1; scan……

三角形 (C语言代码)

摘要:解题思路:这其实动态规划算法的一道 入门入门入门 级的题,又称为数塔。解法就是从下往上,两两比较,以样例为例。最下面的4 5 2 6,先4和5比较,二者间大的数与上面的2相加。依次类推。比较规整的代码……