文科生的悲哀 (C语言代码)(用递归写的,超时了) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int count=0; int cishu=0; int n; int nextCourse(int course) {…… 题解列表 2019年01月25日 0 点赞 0 评论 1558 浏览 评分:9.9
蓝桥杯2013年第四届真题-打印十字图 (C语言代码) 摘要:解题思路: 取1/4块图形来做区域填数,然后输出的时候再做对称输出就可以了QWQ。注意事项: 0是个十字,没任何框框的参考代码:#include <stdio.h> int main(){ in…… 题解列表 2019年01月25日 0 点赞 0 评论 1214 浏览 评分:0.0
数据结构-定位子串 (C++代码) 两种方法:滑窗法和kmp法 摘要:方法一:滑窗法。时间是 O(n*m)#include <iostream> #include <cstring> #define Max_nums 100 using namespace std…… 题解列表 2019年01月24日 0 点赞 0 评论 1826 浏览 评分:0.0
循环入门练习6 (C语言代码),有说明 摘要:解题思路:两个循环,先写大循环,再在中间插入小循环,注意事项:小循环每次开始前要重新定义变量;参考代码:#include<stdio.h>int main(){ int a,b,N; …… 题解列表 2019年01月24日 0 点赞 0 评论 1174 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题9.8 (C语言代码) 摘要:解题思路:函数方法注意事项:无参考代码:#include<stdio.h>float fun(float a,float b,float c){ scanf("%f %f %f",&a,&b,&…… 题解列表 2019年01月24日 0 点赞 0 评论 887 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:注意事项:可能复杂一点 ,但这样最直观参考代码:int main(){int a,b,c,d,e,f;printf("请输入不大于5位的数字"); scanf("%d",&a);b=a/1…… 题解列表 2019年01月24日 0 点赞 0 评论 826 浏览 评分:0.0
蓝桥杯算法提高VIP-扶老奶奶过街 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { int trueSpeaker=0; i…… 题解列表 2019年01月24日 3 点赞 0 评论 1916 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题7.1 (C语言代码) 摘要:解题思路:按素数定义走就行了注意事项:参考代码:#include <stdio.h> int main() { int n; int i,j; int flag = 0;//标记变量 …… 题解列表 2019年01月24日 0 点赞 0 评论 2015 浏览 评分:0.0
循环入门练习4 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,N; a=0; b=0; scanf("%d",&N); whil…… 题解列表 2019年01月24日 0 点赞 0 评论 1300 浏览 评分:0.0
循环入门练习3 (C语言代码) 摘要:解题思路: 跟前面的两题差别不大,唯一变的就是把1000变成了N,所以给N定义就行了;注意事项:参考代码:#include<stdio.h>int main(){ int a,b,N; a…… 题解列表 2019年01月24日 0 点赞 0 评论 1398 浏览 评分:9.9