hdu 1851 A Simple Game
来源:互联网 发布:unity3d vs2017 编辑:程序博客网 时间:2024/05/22 00:13
链接:点击打开链接
NIM博弈,SG函数时m%(l+1)
#include<iostream>#include<stdio.h>using namespace std;int main(){ int t,sum,n,m,i,x; scanf("%d",&t); while(t--){ scanf("%d",&x); sum=0; for(i=0;i<x;i++){ scanf("%d %d",&n,&m); sum^=(n%(m+1)); } if(sum==0) printf("Yes\n"); else printf("No\n"); } return 0; }
- HDU 1851 - A Simple Game
- hdu 1851 A Simple Game
- hdu 1851 A Simple Game
- hdu A Simple Game(1851)
- HDU 1851 A Simple Game
- hdu 1851 A Simple Game
- HDU-1851-A Simple Game
- hdu 1851 A Simple Game SG定理
- HDU(1851) A Simple Game (博弈)
- hdu A Simple Stone Game
- hdu 1851 A Simple Game Java 水题系列 博弈
- hdu 1851 A Simple Game (Nim博弈)
- hdu 2486 A simple stone game
- 【hdu 2486】A simple stone game
- HDU 6237 A Simple Stone Game
- HDU 1848 Fibonacci again and again && HDU 1851 A Simple Game (基础sg函数)
- A Simple FPS Game
- UESTC1141 A Simple Game
- 结网@改变世界的互联网产品经理(修订版)》
- PHP10个常用处理字符串的方法
- 如何查看系统的开机时间
- uva 1428 - Ping pong(树状数组)
- vc_文件读写权限
- hdu 1851 A Simple Game
- DotProject 安装
- EFI Shell 命令参考
- 通过xslt将xml转换为html代码
- windows 如何查看端口占用情况?
- Canvas and Drawables
- SurfaceFlinger调用framebuffer模块、gralloc模块流程(3)
- 解决ngnix服务器上的Discuz!x2.5 Upload Error:413错误
- Android Push Notification实现信息推送使用