状态压缩DP #2495: 信息学奥赛一本通T1592-国王 摘要:**大体思路** 如果 n=3,那么 [1 0 0 ] 代表第一行第一个位置放置棋子 由于每一行怎么摆放,只会受到上一行棋子摆放带来的影响 所以我们枚举每一行的所有==合法状态==,…… 题解列表 2024年11月20日 1 点赞 0 评论 226 浏览 评分:0.0
不懂可评论 摘要:解题思路:注意事项:参考代码:t=int(input()) if 25<=t<=30: print("ok!") else: print("no!")…… 题解列表 2024年11月20日 0 点赞 0 评论 203 浏览 评分:0.0
不懂可评论 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; import java.util.Arrays; public class Main{ public s…… 题解列表 2024年11月20日 0 点赞 0 评论 575 浏览 评分:0.0
数组法数字后移 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int F(int arr[],int j,int k){ int b[k]; for(int i=0;i<k;i++) { b[i]…… 题解列表 2024年11月20日 1 点赞 0 评论 275 浏览 评分:0.0
不懂可评论 摘要:解题思路:注意事项:参考代码:num=list(map(int,input().split())) num.sort() for i in num: print(i,end=" ")…… 题解列表 2024年11月20日 0 点赞 0 评论 345 浏览 评分:0.0
2919: 奖学金(sort和自定义降序函数) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef struct student { int score; int ch…… 题解列表 2024年11月20日 0 点赞 0 评论 272 浏览 评分:9.9
3030: 全排列 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 全局变量声明 int l; // 字符串长度 string s; …… 题解列表 2024年11月20日 1 点赞 0 评论 458 浏览 评分:10.0
1415: 挚爱C语言(Java版本) 摘要:```java import java.util.Scanner; public class Main { public static void main(String[] args) { …… 题解列表 2024年11月20日 0 点赞 0 评论 170 浏览 评分:9.9
信息学奥赛一本通T1317-组合的输出,深搜 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 全局变量声明 int n, r, a[100] = {1}; // …… 题解列表 2024年11月20日 0 点赞 0 评论 553 浏览 评分:0.0
糖果游戏-环状数组的左右索引公式 摘要:解题思路:初始化数组,输入循环,左右索引的循环,按照索引同时更新数组,输出的循环。注意事项:cin的位置;索引的初始化(int left);环状数组的左右索引公式-左侧:(i-1+n)%n 右侧:(i…… 题解列表 2024年11月20日 0 点赞 0 评论 271 浏览 评分:0.0