编写题解 1126: C语言训练-字符串正反连接 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ string str; cin>>str; cout…… 题解列表 2022年03月26日 0 点赞 0 评论 637 浏览 评分:0.0
编写题解 1051: [编程入门]结构体之成绩统计2 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;struct student{ string id; string name; …… 题解列表 2022年03月26日 0 点赞 0 评论 599 浏览 评分:0.0
2108: 抢夺资源 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,m; while(scanf("%d%d",&n,&m)!=EOF) { if(n%(m+1)…… 题解列表 2022年03月26日 0 点赞 0 评论 492 浏览 评分:0.0
题目 1086: A+B for Input-Output Practice (II) 摘要:解题思路:注意事项:参考代码:#includeint main(){ int n,i; scanf("%d",&n); int a[n],b[n]; for(i=1;i<=n;…… 题解列表 2022年03月26日 0 点赞 0 评论 799 浏览 评分:9.9
蓝桥杯2018年第九届真题-小朋友崇拜圈pyhton n=int(input())li=list(map(int,input().split()))dic={}foriinrange(1,n+1):#用字典记录每个小朋友崇拜的人dic.setdefault(i,li[i-1])##print(dic)max_len=0#最大圈的长度num=0#当前圈的长 题解列表 2022年03月26日 0 点赞 0 评论 934 浏览 评分:9.9
抢夺资源 经典巴什博弈 典型巴什博弈问题**如果n=m+1,不管先手取多少,都是后手赢**由此可以得到启发,**只要给对手留下(m+1)的倍数,就能赢**```cpp#includeusingnamespacestd;intn,m;intmain(){while(cin>>n>>m){if(n%(m+1))cout 题解列表 2022年03月26日 1 点赞 0 评论 654 浏览 评分:9.9
(C++代码) 简单的字符串-题解 递归函数解法 摘要:#include<iostream> #include<string> #include<string.h> using namespace std; int Count;//记录相同的项的个…… 题解列表 2022年03月26日 0 点赞 0 评论 700 浏览 评分:0.0
c语言解题目,yyds 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int a[10][10]; for(int i=0;i<…… 题解列表 2022年03月26日 0 点赞 0 评论 565 浏览 评分:0.0
编写题解 1030: [编程入门]二维数组的转置(原数组改变) #1030:[编程入门]二维数组的转置**https://www.dotcpp.com/oj/problem1030.html**##解题思路注意:1.**列必须要大于行才交换**,如果没有这个条件,就会全部交换一遍,等于没换。2.c语言二维数组作为函数参数传递。 题解列表 2022年03月26日 0 点赞 0 评论 570 浏览 评分:0.0
记忆化搜索-取球博弈 dfs搜索每种可能走法,vis数组存出现过的场面防止重复递归存在对手输则自己赢,不存在则查看是否可能出现平局,若两者情况都没有就必败注意每次递归交换操作对象```cpp#includeusingnamespacestd;typedeflonglongll;constintN=1e5+5;intn[5] 题解列表 2022年03月26日 0 点赞 0 评论 978 浏览 评分:8.0