题解列表
1100: 采药一眼丁真
摘要:解题思路:01背包注意事项:数组大小和动态规则参考代码:#include<stdio.h>
#define max(x,y) ((x)>(y)?(x):(y))
int main(){
int……
c语言string解法
摘要:解题思路:注意事项:注意字符串的表达参考代码:#include <stdio.h>#include <string.h>int main(){ int N; char S1[50],S2[……
糖果游戏-环状数组的左右索引公式
摘要:解题思路:初始化数组,输入循环,左右索引的循环,按照索引同时更新数组,输出的循环。注意事项:cin的位置;索引的初始化(int left);环状数组的左右索引公式-左侧:(i-1+n)%n 右侧:(i……
信息学奥赛一本通T1317-组合的输出,深搜
摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h"
using namespace std;
// 全局变量声明
int n, r, a[100] = {1}; // ……