编写题解 1247: 筛排处理 摘要:解题思路:代码量有些大,但是思路很清晰,先排序,后去重。注意每次k都要从0开始注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j,t,k; int a[1…… 题解列表 2022年03月03日 0 点赞 0 评论 719 浏览 评分:0.0
动态规划十行快速解题 摘要:解题思路:注意事项:参考代码:dp=[0 for i in range(1000000)]count=0a,b=map(int,input().split())dp[a]=dp[b]=1for i i…… 题解列表 2022年03月03日 0 点赞 0 评论 551 浏览 评分:0.0
程序员的表白(加油!无限拉大长板) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char c; int n,i,j; while(scanf("%d",&n)!=EOF) { for(j=0;…… 题解列表 2022年03月03日 0 点赞 0 评论 524 浏览 评分:0.0
1169: 绝对值排序(c语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<stdlib.h> #include<math.h> //定义结构体指针 typedef struct or…… 题解列表 2022年03月03日 0 点赞 0 评论 566 浏览 评分:7.0
结构体之成绩统计2 摘要: ```cpp #include using namespace std; //结构体数组 //定义结构体 struct student { char id[50]; //学号…… 题解列表 2022年03月03日 0 点赞 0 评论 482 浏览 评分:0.0
python-密码锁 摘要:解题思路:广度搜索bfs。注意事项:参考代码:if __name__ == '__main__': n = int(input().strip()) s =…… 题解列表 2022年03月03日 1 点赞 0 评论 638 浏览 评分:9.9
题目 1668: printf基础练习2 摘要:解题思路:注意事项:无前缀方式:printf("%o",num) //无前缀o的8进制数printf("%d",num) //无前缀0d的10进制数printf("%x",num) //无前缀0…… 题解列表 2022年03月03日 0 点赞 0 评论 586 浏览 评分:0.0
蓝桥杯2020年第十一届省赛真题-数字三角形-java 摘要:解题思路:从上到下注意事项:最后一行分奇偶参考代码:import java.util.Arrays; import java.util.Scanner; public class Main { …… 题解列表 2022年03月03日 0 点赞 0 评论 839 浏览 评分:8.4
蓝桥杯基础练习VIP-2n皇后问题(N皇后问题之上再嵌套一个n皇后就行!) 摘要:#include<iostream>using namespace std;int a[100][100],n,ans=0;bool vis1[100],vis2[100];bool x1[100],…… 题解列表 2022年03月03日 0 点赞 0 评论 593 浏览 评分:0.0
Hifipsysta-2056-汉诺塔(C++代码) 摘要:```cpp #include using namespace std; void hanoi(int n, int A, int B, int C){ if(n==1){ …… 题解列表 2022年03月03日 0 点赞 0 评论 656 浏览 评分:0.0