hdu 1730 Northcott Game (nim博弈变形)
来源:互联网 发布:spine导入到unity3d 编辑:程序博客网 时间:2024/05/12 13:30
# include <algorithm># include <stdio.h># include <string.h># include <math.h># include <iostream>using namespace std;int main(){ int n,m,i,a,b,cot; while(~scanf("%d%d",&n,&m)) { cot=0; for(i=0; i<n; i++) { scanf("%d%d",&a,&b); cot^=abs(abs(a-b)-1); // 把中间差的空格,即走的总步数,当作总石头数, } if(cot==0)//平衡状态,后手赢 printf("BAD LUCK!\n"); else printf("I WIN!\n"); } return 0;}
0 0
- hdu 1730 Northcott Game (nim博弈变形)
- HDU 1730 Northcott Game(Nim博弈变形)
- HDU 1730 Northcott Game(nim博弈)
- hdu 1730 Northcott Game Nim博弈~~
- hdu 1730 Northcott Game (Nim博弈)
- HDU 1730 Northcott Game (Nim博弈)
- Northcott Game(hdu1730变形的nim博弈)
- Northcott Game + nim博弈
- Northcott Game - HDU 1730 Nim
- Northcott Game + 博弈 + nim博弈
- HDOJ 1730 Northcott Game(nim博弈)
- HDU 1730 Northcott Game(Nim game)
- Northcott Game (Nim博弈)
- HDU 1730 Northcott Game NIM游戏
- (step 8.2.11)hdu 1730(Northcott Game——NIM游戏变形)
- 杭电hdu 1730 Northcott Game 博弈
- HDU 1730 - Northcott Game(博弈)
- HDU 1730 Northcott Game 【组合博弈】
- IOS7官方推荐图标和图像尺寸
- 【计算几何】 HDOJ 5017 Ellipsoid
- ios 利用通知处理键盘的显示与隐藏
- SoundPool-代替MediaPlayer-播放音效
- NSThread和dispatch_async用法和区别
- hdu 1730 Northcott Game (nim博弈变形)
- JS中Top、clientTop、scrollTop、offsetTop各属性介绍
- Java中利用synchronized关键字实现多线程同步问题
- 协程原理分析
- android webkit学习笔记1---url的load过程
- <详解>C语言实现程序跳转到绝对地址0x100000处执行
- 同花顺2015校园招聘笔试题
- 素数环(dfs)
- java.text.NumberFormat