题解列表

筛选

方砖问题 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int count1,count2;int f1(int l1,int l2){if(l2>l1){l2-=l1;count1++;}……

我美吗!

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

Manchester- 求1+2!+3!+...+N!的和

摘要:解题思路:输入一个数N,作为循环步数;先写出每一个数的阶乘的循环体;在加上一个求和即可;注意事项:把变量定义长一些,避免溢出;最后输出不带小数位;参考代码:c++:#include <iostream……