题解列表

筛选

编写题解 1124: C语言训练-大、小写问题

摘要:解题思路:使用了io流,比Scanner有较好的运行效率。可能ACM不给用,慎用慎用注意事项:使用了io流,可能ACM不给用,慎用慎用参考代码:import java.io.BufferedReade……

java自定义函数实现

摘要:解题思路:写两个方法,一个用来计算阶乘,一个用来计算表达式每一项的和。注意事项:fact()函数里面存阶乘的变量以及函数的返回值要设为long型,因为阶乘计算结果太大时,int型的溢出概率太大!参考代……

C语言训练-角谷猜想

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

密码(c语言)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){    int n,i,s[200];    scanf("%d",&n); ……

简简单单-c语言for循环

摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() {     int a = 1;     int b;     int sum = 0;     i……

编写题解 1099: 校门外的树

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){    int M,L;    int a[100]={0};    int b[……

自定义函数之字符串连接

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){char str1[10],str2[10];scanf("%s",str1);scanf("%s",str2);……