WU-C语言训练-大、小写问题 (C语言代码) 摘要:参考代码:#include<stdio.h> int main() { char str[100]; int i; gets(str); for(i=0;str[i]!='…… 题解列表 2017年12月26日 3 点赞 0 评论 1232 浏览 评分:0.0
母牛的故事 (C语言代码) 摘要:解题思路:刚开始写这题的时候,第一反应就是用递归,但是这造成了超时。所以我想到用数组的方式来进行“递归”。注意事项:参考代码:#include <stdio.h>int main(){ int n, …… 题解列表 2017年12月26日 0 点赞 0 评论 788 浏览 评分:0.0
WU-C语言训练-字符串正反连接 (C语言代码) 摘要:参考代码:#include<stdio.h> #include<string.h> int main() { char str[100],str1[100],*p; p=str1; …… 题解列表 2017年12月26日 1 点赞 0 评论 1321 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.7 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a[100],b[100]; int i,j=0; gets(a); for(i=0;a[i]!=&#…… 题解列表 2017年12月26日 1 点赞 0 评论 655 浏览 评分:0.0
WU-C语言训练-求1+2!+3!+...+N!的和 (C语言代码) 摘要:参考代码:#include<stdio.h> long long factorial(long long n) { if(n==1) return 1; else retur…… 题解列表 2017年12月26日 3 点赞 0 评论 2241 浏览 评分:0.0
母牛的故事 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int i,n,f[55]; while(scanf("%d",&n)) …… 题解列表 2017年12月26日 0 点赞 0 评论 642 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.5 (Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.*;public class p30 { public static void main(String[] arg){ Scanner…… 题解列表 2017年12月26日 2 点赞 1 评论 736 浏览 评分:0.0
琪露诺的编程教室(C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <cstring>#include <stdio.h>using namespace std;int main(…… 题解列表 2017年12月26日 0 点赞 0 评论 866 浏览 评分:0.0
琪露诺的编程教室(C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <cstring>#include <stdio.h>#include <cmath>using namespa…… 题解列表 2017年12月26日 0 点赞 0 评论 772 浏览 评分:0.0
校门外的树 (C++代码) 摘要:解题思路:为何要用线段树?只是为了炫耀你们的学识吗?用树状数组难道不是更好吗?思路:树状数组的经典应用二:区间更新、单点查询,维护的是数列的差分数组(t[i]=a[i]-a[i-1]),区间加就显得很…… 题解列表 2017年12月26日 2 点赞 0 评论 1106 浏览 评分:0.0