信息学奥赛一本通T1314-过河卒 动态规划 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义全局变量,包括矩阵大小、中心点坐标和计数器 int n, m, …… 题解列表 2024年11月19日 0 点赞 0 评论 323 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d",&a); for(b=2;b<=a;b++) …… 题解列表 2024年11月19日 0 点赞 0 评论 506 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,g,t,a[10]; for(i=0;i<10;i++) scanf("%d"…… 题解列表 2024年11月19日 0 点赞 0 评论 191 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,a[10]; for(i=0;i<10;i++) { scanf("…… 题解列表 2024年11月19日 0 点赞 0 评论 288 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a[100]; int i,j=0; scanf("%s",a); for(i…… 题解列表 2024年11月19日 0 点赞 0 评论 527 浏览 评分:0.0
1100: 采药一眼丁真 摘要:解题思路:01背包注意事项:数组大小和动态规则参考代码:#include<stdio.h> #define max(x,y) ((x)>(y)?(x):(y)) int main(){ int…… 题解列表 2024年11月19日 1 点赞 0 评论 435 浏览 评分:0.0
集合的划分 递归 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; long long aaa(int n, int k) { // …… 题解列表 2024年11月19日 0 点赞 0 评论 266 浏览 评分:0.0
c语言string解法 摘要:解题思路:注意事项:注意字符串的表达参考代码:#include <stdio.h>#include <string.h>int main(){ int N; char S1[50],S2[…… 题解列表 2024年11月20日 0 点赞 0 评论 428 浏览 评分:0.0
向量点积计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int n,i,sum=0 ; int a[223223]={0},b[23244252]={0…… 题解列表 2024年11月20日 0 点赞 0 评论 151 浏览 评分:0.0
糖果游戏-环状数组的左右索引公式 摘要:解题思路:初始化数组,输入循环,左右索引的循环,按照索引同时更新数组,输出的循环。注意事项:cin的位置;索引的初始化(int left);环状数组的左右索引公式-左侧:(i-1+n)%n 右侧:(i…… 题解列表 2024年11月20日 0 点赞 0 评论 197 浏览 评分:0.0