题解列表

筛选

母牛的故事 (C语言代码)

摘要:解题思路:利用数列累加的原理,找出每年数量与前几年的关系,保留需要累加的前几项,最后便能得到结果注意事项:没有调用任何复杂的函数,只用了最基本的语法,适合初学者推敲参考代码:#include <std……

逆序数 (C语言代码)

摘要:#include "stdafx.h"#define max 100int main(){ int n,a[max],i,j,count=0; scanf("%d", &n); for (i = 0;……