题解列表

筛选

蓝桥杯算法提高VIP-开灯游戏 (C++代码)

摘要:解题思路:        模拟 + DFS。其中最巧妙的就是如何记录开关的某个组合出现过,当然是 Hash 值啦。参考代码:#include<bits/stdc++.h> /* 一共 112 个组合,……

可AC (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int num[40] = { 1, 1 }; int N, i, j, k; scanf("%d", &N);……

循环入门练习6 (C语言代码)

摘要:解题思路:注意事项:第二个循环跳出后,j要置1.参考代码:#include <stdio.h>int main(){    int N=0,j=1,i=1;    scanf("%d",&N);   ……

姓名排序 (C++代码)

摘要:解题思路:简单理解通俗易懂注意事项:参考代码:#include <iostream> #include <algorithm> using namespace std; int m,n; in……

Minesweeper (C++代码)

摘要:解题思路:参考代码:#include<bits/stdc++.h> using namespace std;   int  high, width; char Map[103][103]; ……

可AC(C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, m, i, s, sum = 0; scanf("%d", &n); i = 1; while (……