课后习题8.1 (C语言代码)一行代码是什么感觉 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int gcd(int a, int b) { return a%b==0 ? b : gcd(b,a%b); } i…… 题解列表 2018年10月31日 2 点赞 6 评论 1149 浏览 评分:9.7
C语言程序设计教程(第三版)课后习题7.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main(void) { int a[10]; for(int i = 0; i < 10; ++i) { …… 题解列表 2018年10月31日 0 点赞 0 评论 968 浏览 评分:0.0
课后习题7.4 (C语言代码)实实在在的在有序表插入一个数据使之仍然有序的方法 摘要:解题思路:数据本身是有序的,需要我们插入一个数据,并且插入之后的的表还是有序的;有一个投机取巧的方法就是,我创建一个大小为10的数据,每次读入一个数据到数组中,最后一个数据(要插入的)也读入到数组中(…… 题解列表 2018年10月31日 1 点赞 0 评论 1718 浏览 评分:9.9
C语言训练-计算1977!* (C语言代码) 摘要:解题思路:用数组存储即可实现。注意进位,有可能超过100,1000,10000等,所以要用循环实现最后一个进位。注意事项:参考代码:#include<stdio.h> #include <strin…… 题解列表 2018年10月31日 2 点赞 0 评论 796 浏览 评分:0.0
蓝桥杯算法提高VIP-因式分解 (C语言代码) 摘要:#include "stdafx.h"#include "string.h"int fun_sushu(int n){int flag;if (n == 2)return 1;else{for (in…… 题解列表 2018年10月31日 0 点赞 0 评论 812 浏览 评分:8.0
拆分位数 (C语言代码) 摘要:解题思路:int 数据除数取整,456/100=4;求模。注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,d; scanf("%d",&a…… 题解列表 2018年10月31日 0 点赞 0 评论 600 浏览 评分:0.0
拆分位数 (C语言代码) 摘要:解题思路:int 数据除数取整,456/100=4;求模。注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,d; scanf("%d",&a…… 题解列表 2018年10月31日 0 点赞 0 评论 593 浏览 评分:0.0
蓝桥杯2013年第四届真题-核桃的数量 (C语言代码) 摘要:#include "stdafx.h"int Gcd(int a, int b){ int t; if (a < b) { t = a; a = b; b = t; } do { t = a …… 题解列表 2018年10月31日 0 点赞 0 评论 757 浏览 评分:0.0
川哥的吩咐 (C语言代码) 摘要:#include "stdafx.h"#include "string.h"#define max 1000void reverse(int len, char a[]){ int i,t; …… 题解列表 2018年10月31日 0 点赞 0 评论 738 浏览 评分:0.0
The 3n + 1 problem (C语言代码) 摘要:#include "stdio.h"int count = 0;int f(int n){ if (n == 1) { int k = count + 1; count = 0; return …… 题解列表 2018年10月31日 0 点赞 0 评论 404 浏览 评分:0.0