题解列表

筛选

【密码】 (C++代码)

摘要:解题思路:简单模拟注意事项:参考代码:#include<bits/stdc++.h> using namespace std; char a[52]; int main() { int c……

P1004 (C++代码)简短易懂,回溯减枝

摘要:解题思路:回溯减枝注意事项:避免重复搜索,之前已经搜索过的点保存于d数组中;参考代码:int r, c;int map[100][100], d[100][100];int dx[4] = {0, 1……

汽水瓶 (C++代码)

摘要:参考代码:#include<iostream> using namespace std; int get(int x) {     if(x<=1) return 0;     if(x==……

不容易系列 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,i; scanf("%d",&a); while(a--){  int sum=3;  scan……