题解列表
蓝桥杯2013年第四届真题-核桃的数量-题解(C++代码)
摘要:解题思路:找到三个数的最小公约数即可注意事项:公约数从1开始找参考代码:#include<bits/stdc++.h>
using namespace std;
int main(){
……
链表的基本操作(C语言代码)
摘要:解题思路:注意事项:main函数结束及删除节点时,删除malloc申请的堆空间,避免内存泄漏参考代码:#include <stdio.h>
#include <stdlib.h>
/** 链表……
二级C语言-计算素数和 注意处理数字1
摘要: 解题思路:遍历 2~x-1 检查isprime?遍历 m~n 求和处理数字 1 注意事项: 数字 1既不质数也不是合数。参考代码:#include<stdio.h>int ……
编写题解 2263: 蓝桥杯2015年第六届真题-饮料换购 <笔记>
摘要:#include<iostream>
using namespace std;
int fun(int n) {
int sum = n;
int a, b;
while (1) {
……
身份证号码升级-题解(C++代码)
摘要:解题思路:字符串注意事项:字符串和数字的转换参考代码:#include <iostream>
#include <cstring>
using namespace std;
char s1[20……
容易理解的C语言代码
摘要:解题思路:注意事项:参考代码:#include <stdio.h>
int main()
{
int a, b, c, n;
scanf("%d", &n);
a =……
C************************************
摘要:#include <stdio.h>#include <string.h>#include <math.h>int main(){ int k,l,i,j,m; long a[101][1……
题目 1671: 小九九(能解决格式问题的C代码)
摘要:解题思路: 利用循环来输出九九乘法表 通过 i 来控制九九乘法表的 行 并且表示为第二个元素 通过 j 来控制九九乘法表的 列 并且表示为第一个元素 也就是 j * i……