1100: 采药一眼丁真 摘要:解题思路:01背包注意事项:数组大小和动态规则参考代码:#include<stdio.h> #define max(x,y) ((x)>(y)?(x):(y)) int main(){ int…… 题解列表 2024年11月19日 2 点赞 0 评论 765 浏览 评分:0.0
集合的划分 递归 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; long long aaa(int n, int k) { // …… 题解列表 2024年11月19日 0 点赞 0 评论 855 浏览 评分:0.0
c语言string解法 摘要:解题思路:注意事项:注意字符串的表达参考代码:#include <stdio.h>#include <string.h>int main(){ int N; char S1[50],S2[…… 题解列表 2024年11月20日 0 点赞 0 评论 837 浏览 评分:0.0
向量点积计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int n,i,sum=0 ; int a[223223]={0},b[23244252]={0…… 题解列表 2024年11月20日 0 点赞 0 评论 406 浏览 评分:0.0
信息学奥赛一本通T1317-组合的输出,深搜 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 全局变量声明 int n, r, a[100] = {1}; // …… 题解列表 2024年11月20日 0 点赞 0 评论 811 浏览 评分:0.0
不懂可评论 摘要:解题思路:注意事项:参考代码:num=list(map(int,input().split())) num.sort() for i in num: print(i,end=" ")…… 题解列表 2024年11月20日 0 点赞 0 评论 627 浏览 评分: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 评论 509 浏览 评分:0.0
不懂可评论 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; import java.util.Arrays; public class Main{ public s…… 题解列表 2024年11月20日 0 点赞 0 评论 798 浏览 评分:0.0
不懂可评论 摘要:解题思路:注意事项:参考代码:t=int(input()) if 25<=t<=30: print("ok!") else: print("no!")…… 题解列表 2024年11月20日 0 点赞 0 评论 399 浏览 评分:0.0
状态压缩DP #2495: 信息学奥赛一本通T1592-国王 摘要:**大体思路** 如果 n=3,那么 [1 0 0 ] 代表第一行第一个位置放置棋子 由于每一行怎么摆放,只会受到上一行棋子摆放带来的影响 所以我们枚举每一行的所有==合法状态==,…… 题解列表 2024年11月20日 2 点赞 0 评论 515 浏览 评分:0.0