抢夺资源 经典巴什博弈 摘要:典型巴什博弈问题 **如果n=m+1,不管先手取多少,都是后手赢** 由此可以得到启发,**只要给对手留下(m+1)的倍数,就能赢** ```cpp #include using names…… 题解列表 2022年03月26日 1 点赞 0 评论 470 浏览 评分:9.9
蓝桥杯2018年第九届真题-小朋友崇拜圈pyhton 摘要: n = int(input()) li = list(map(int,input().split())) dic = {} for i in range(1,n+…… 题解列表 2022年03月26日 0 点赞 0 评论 777 浏览 评分:9.9
题目 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 评论 614 浏览 评分:9.9
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 评论 349 浏览 评分:0.0
编写题解 1051: [编程入门]结构体之成绩统计2 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;struct student{ string id; string name; …… 题解列表 2022年03月26日 0 点赞 0 评论 436 浏览 评分:0.0
编写题解 1126: C语言训练-字符串正反连接 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ string str; cin>>str; cout…… 题解列表 2022年03月26日 0 点赞 0 评论 452 浏览 评分:0.0
不好意思,直接输出了 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ cout<<"95959"<<endl; return 0…… 题解列表 2022年03月26日 0 点赞 0 评论 406 浏览 评分:0.0
编写题解 1141: C语言训练-百钱百鸡问题 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ for(int i=0;i<100;i++){ f…… 题解列表 2022年03月26日 0 点赞 0 评论 445 浏览 评分:0.0
九九乘法表 摘要:解题思路:注意事项:原样输出的语句,直接复制粘贴就不会出错。尤其不要忘了最后一行输出。然后,就是九九乘法表的结果样式,每个数字右对齐。参考代码:#include<stdio.h>#include<ma…… 题解列表 2022年03月26日 0 点赞 1 评论 758 浏览 评分:9.9
蓝桥杯基础练习VIP-Huffuman树Python版 摘要:解题思路:注意事项:参考代码:#蓝桥杯基础练习VIP-Huffuman树Python版 n=int(input()) A=list(map(int,input().strip().split())…… 题解列表 2022年03月26日 0 点赞 0 评论 411 浏览 评分:7.0