题解列表
排队打水问题--简单
摘要:解题思路:很简单,自己看看能不能看懂吧注意事项:打水时间是每个人的的等待时间和打水时间和,不是总共的打水时间和!!!参考代码:#include<iostream>#include<algorithm>……
Hifipsysta-2056-汉诺塔(C++代码)
摘要:```cpp
#include
using namespace std;
void hanoi(int n, int A, int B, int C){
if(n==1){
……
蓝桥杯基础练习VIP-2n皇后问题(N皇后问题之上再嵌套一个n皇后就行!)
摘要:#include<iostream>using namespace std;int a[100][100],n,ans=0;bool vis1[100],vis2[100];bool x1[100],……
蓝桥杯2020年第十一届省赛真题-数字三角形-java
摘要:解题思路:从上到下注意事项:最后一行分奇偶参考代码:import java.util.Arrays;
import java.util.Scanner;
public class Main {
……
题目 1668: printf基础练习2
摘要:解题思路:注意事项:无前缀方式:printf("%o",num) //无前缀o的8进制数printf("%d",num) //无前缀0d的10进制数printf("%x",num) //无前缀0……
python-密码锁
摘要:解题思路:广度搜索bfs。注意事项:参考代码:if __name__ == '__main__':
n = int(input().strip())
s =……
1169: 绝对值排序(c语言)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>
#include<stdlib.h>
#include<math.h>
//定义结构体指针
typedef struct or……
程序员的表白(加油!无限拉大长板)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char c; int n,i,j; while(scanf("%d",&n)!=EOF) { for(j=0;……