BREEZE------之你猜 有没有小技巧系列(用的C) 摘要:什么数为素数应该不用我讲了吧!(敲黑板!)该程序属于简单解了,注意一下单一的result这样子可以方便修改,只需改一次就可以了(如果要修改的话)小技巧时间! 判断一个数为素数只要判断到他的平方根…… 题解列表 2019年02月19日 0 点赞 0 评论 1351 浏览 评分:0.0
蓝桥杯算法提高VIP-特殊的质数肋骨 (C语言代码)打表 摘要:解题思路: 先用暴力的方法把结果全部跑出来,然后打表输出就可以了,其它方法没想到QWQ参考代码:#include <stdio.h> int main(){ int a[9][17] = {…… 题解列表 2019年02月19日 0 点赞 0 评论 1147 浏览 评分:0.0
蓝桥杯算法提高VIP-Pascal三角 (C语言代码)代码千万行,注释第一行 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int n,t; scanf("%d",&n); t=n; in…… 题解列表 2019年02月19日 0 点赞 0 评论 1728 浏览 评分:7.0
敲七游戏 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int xt(int x); // 判断数据中是否含7int main(){ int n, i, t = 0; scanf("%d",…… 题解列表 2019年02月19日 0 点赞 0 评论 1457 浏览 评分:0.0
蓝桥杯算法训练VIP-调和数列问题 (C语言代码) 摘要:解题思路:循环加法注意事项:实数类型注意数据细节就行了参考代码:#include <stdio.h>int main(){ double x, t, s; int i, j, ok, a; while…… 题解列表 2019年02月19日 0 点赞 0 评论 1178 浏览 评分:0.0
蓝桥杯算法提高VIP-大数加法 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> // 个人认为最好理解的大数加法#include <string.h>int main(){ char a[1000], b[10…… 题解列表 2019年02月19日 0 点赞 0 评论 1019 浏览 评分:0.0
杨辉三角 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int i, j, k, n, a[100][100]; while (scanf("%d", &n) != …… 题解列表 2019年02月19日 0 点赞 0 评论 927 浏览 评分:0.0
C语言训练-大、小写问题 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <ctype.h>int main(){ char a[100]; int i; gets(a); for (i =…… 题解列表 2019年02月19日 0 点赞 0 评论 876 浏览 评分:0.0
用筛法求之N内的素数。 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int xt(int x);int main(){ int i, n; scanf("%d", &n…… 题解列表 2019年02月19日 0 点赞 0 评论 593 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题10.2 (C语言代码) 摘要:解题思路:注意事项: 1、函数strcmp(char *a, char *b)的使用。 2、#include<string.h>头文件。参考代码:#include<st…… 题解列表 2019年02月19日 0 点赞 0 评论 1216 浏览 评分:6.0