蓝桥杯算法提高VIP-排列式 (C++代码) 摘要:解题思路: 就是这么暴力。参考代码 ① :#include<bits/stdc++.h> using namespace std; bool arr[10]; void J…… 题解列表 2018年07月21日 0 点赞 0 评论 1300 浏览 评分:0.0
蓝桥杯算法提高VIP-开灯游戏 (C++代码) 摘要:解题思路: 模拟 + DFS。其中最巧妙的就是如何记录开关的某个组合出现过,当然是 Hash 值啦。参考代码:#include<bits/stdc++.h> /* 一共 112 个组合,…… 题解列表 2018年07月22日 0 点赞 0 评论 1876 浏览 评分:0.0
可AC (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int num[40] = { 1, 1 }; int N, i, j, k; scanf("%d", &N);…… 题解列表 2018年07月22日 1 点赞 0 评论 828 浏览 评分:0.0
循环入门练习6 (C语言代码) 摘要:解题思路:注意事项:第二个循环跳出后,j要置1.参考代码:#include <stdio.h>int main(){ int N=0,j=1,i=1; scanf("%d",&N); …… 题解列表 2018年07月22日 4 点赞 3 评论 390 浏览 评分:0.0
循环练习之完美数判断 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int N=0,i=1,a=0,b=0; scanf("%d",&N); …… 题解列表 2018年07月22日 0 点赞 0 评论 1039 浏览 评分:0.0
姓名排序 (C++代码) 摘要:解题思路:简单理解通俗易懂注意事项:参考代码:#include <iostream> #include <algorithm> using namespace std; int m,n; in…… 题解列表 2018年07月22日 2 点赞 0 评论 1436 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.10 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>main(){int i,n=1,m;printf("请输入第几天想吃剩下一个:");scanf("%d",&m);for(i=1;…… 题解列表 2018年07月22日 1 点赞 0 评论 834 浏览 评分:0.0
Minesweeper (C++代码) 摘要:解题思路:参考代码:#include<bits/stdc++.h> using namespace std; int high, width; char Map[103][103]; …… 题解列表 2018年07月22日 0 点赞 0 评论 775 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.7 (通过指针来传递数组信息) 摘要:解题思路:通过指针来传递数组信息。注意事项:注意char*q=temp;因为最后指针temp已经移到最后一位,所以必须要首先保存好他的首地址。参考代码:void fun(char *temp, cha…… 题解列表 2018年07月22日 0 点赞 0 评论 1001 浏览 评分:0.0
可AC(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, m, i, s, sum = 0; scanf("%d", &n); i = 1; while (…… 题解列表 2018年07月22日 0 点赞 0 评论 949 浏览 评分:0.0