题解列表

筛选

编写题解 1394: 永远的丰碑

摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int main () { int n; while(~scanf ("%d"……

[编程入门]利润计算

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int fun(int x){ int a=100000; if(x<=a) { return 0.1*x; } else if(x<……

有错误请指出

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

有错误请指出

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){   int N,M;   scanf("%d %d",&N,&M);   int a,i=1,c=0;   w……
优质题解

后缀表达式的值

摘要:解题思路: 1.从左到右扫描后缀表达式的每一个字符。 2.如果读入的字符是数字,将其转化为整数,并将其压入栈中。 3.如果读入的字符是运算符,则从栈中取出两个运算数,进行计算,并将结果压入栈中。……

1053: 二级C语言-平均值计算

摘要:解题思路:使用数组及for循环注意事项:参考代码:#include<stdio.h>{int a[10];    int sum=0,score=0;    for(int i=0;i<10;i++)……