题解列表
2003年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码)
摘要:解题思路:注意事项:参考代码:/*输入10个数,求它们的平均值,并输出大于平均值的数据的个数。*/#include<stdio.h>int main(){ float a[10]; flo……
C语言训练-"水仙花数"问题1 (C语言代码)
摘要:解题思路:注意事项:参考代码:/*判断一个数是否为"水仙花数",所谓"水仙花数"是指这样的一个数:首先是一个三位数,其次,其各位数字的立方和等于该数本身。例如:371是一个"水仙花数",371=3^3……
蓝桥杯算法提高VIP-卡勒沃夫之弱水路三千(提高型) (C++代码)拓扑排序
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<vector>#include<map>#include<cstring>#include<queue>#inclu……
C语言程序设计教程(第三版)课后习题9.4 (C语言代码)
摘要:解题思路:注意事项:数字之间可以用!来决定是否为0;参考代码:#include <stdio.h>
#define LEAP_LEAR(y,f) f=((y%4)&&(!y%100))|(y%400……
Cylinder (C语言代码)
摘要:解题思路:注意事项:参考代码:#include <stdio.h>
#define PI 3.14159265358
int main()
{
double w, h;
wh……
蓝桥杯基础练习VIP-数的读法 (C语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>
char dic[10][10]={"ling","yi","er","san","si","wu","liu","qi","ba"……
兰顿蚂蚁 (Java代码)30行代码
摘要:解题思路:注意事项:参考代码:import java.util.Scanner;
public class T1429 {
public static void main(String[] ar……
P1001 (C语言代码)
摘要:解题思路: 本来想用快速排序法的,可是时间超时了,有大佬解释一下吗?注意事项:参考代码:#include <stdio.h>
#include <string.h>
int a[10……
蓝桥杯2014年第五届真题-分糖果 (C语言代码)
摘要:解题思路:注意事项:分糖和累加右边人所分过来糖的数量是同时进行的QWQ参考代码:#include <stdio.h>int main(){ int a[100]; //每个人所拥有的糖果数量 int ……