题解列表

筛选

利润计算——C语言

摘要:解题思路:根据题意可以分为以下六种情况:一、profit<=100000       bonus=profit*0.1;       二、100000<profit<=200000       bon……

4个循环的解题法

摘要:### 不说废话,直接上代码 ```c #include #define SIZE 10 int main() { int nums[SIZE] ; int count ……

题解 1783: 星期判断机

摘要:参考代码:#include<stdio.h> int main() {     int n;     scanf("%d",&n);          switch(n){      c……

1100: 采药 (c++代码)

摘要:```cpp #include using namespace std; const int maxn=110,tmaxn=1010; int cost[maxn],value[maxn],d……

1099: 校门外的树

摘要:```cpp #include #include using namespace std; int main() { char L[10001]; memset(L,0,……

1004: [递归]母牛的故事

摘要:#include<stdio.h>  int fun(int n){     if(n<=4) return n;     else      return fun(n-1)+fun(n-3)……

1072: 汽水瓶(C语言版)

摘要:解题思路:本人习惯于观察变量之间的关系,也就有了下面的构造数组满足:a[i]=1/2这样的一种关系,之后就往里代入就好。。注意事项:参考代码:#include<stdio.h>int main(){ ……

C语言标准解

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ char number[11]; int i; int stop=0; for(i=0;i<9;i++){ ……