题解列表

筛选

九九乘法表

摘要:解题思路:注意事项:原样输出的语句,直接复制粘贴就不会出错。尤其不要忘了最后一行输出。然后,就是九九乘法表的结果样式,每个数字右对齐。参考代码:#include<stdio.h>#include<ma……

不好意思,直接输出了

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){    cout<<"95959"<<endl;    return 0……

2108: 抢夺资源

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){   int n,m; while(scanf("%d%d",&n,&m)!=EOF) { if(n%(m+1)……

抢夺资源 经典巴什博弈

摘要:典型巴什博弈问题 **如果n=m+1,不管先手取多少,都是后手赢** 由此可以得到启发,**只要给对手留下(m+1)的倍数,就能赢** ```cpp #include using names……