题解列表
位数问题动态规划(java)
摘要:解题思路: 代码使用了动态规划来计算N位数中包含偶数个数字3的数的个数,并将结果对12345取余注意事项:参考代码:import java.util.Scanner;
public class ……
发工资咯(python)
摘要:解题思路:注意事项:参考代码:while True: n, *salaries = list(map(int, input().split())) if n == 0: br……
蓝桥杯2013年第四届真题-错误票据
摘要:这道题需要掌握的是读入方式#include<sstream>如果两个id重号,则必然排序在一起,断号则说明a[i]和a[i-1]之间缺了一个数#include <iostream>
#include……
编写题解 1347: 八皇后(回溯)
摘要:解题思路:注意事项:参考代码:#include <iostream>
#include <vector>
using namespace std;
// 检查当前位置是否可以放置棋子
bo……
1286: 最大配对
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>#include<iomanip>#include<algorithm>using namespace ……