It's more of a brain-teaser than a Game Theory problem..

#!/bin/python3

T = int(input().strip())
for a0 in range(T):
n = int(input().strip())
#
# The last left 2 blocks can always produce a winning state, given % 3:
# Think about the below cases
# equal: 0-0 1-1 2-1
# non-equal: 0-1, 1-2, 0-2
if n == 1:
print ("Kitty")
elif n & 1:
print ("Katty")
else:
print ("Kitty")

最新文章

  1. MPMoviePlayerController属性,方法,通知整理
  2. 数学的东西(BZOJ1951)
  3. 【USACO 3.1】Score Inflation(完全背包)
  4. 锋利的jQuery-1-- :的用法
  5. Rust 中的继承与代码复用
  6. [Oracle]Oracle数据库任何用户密码都能以sysdba角色登入
  7. Spring3之JDBC
  8. RPM的基础命令/yum基本命令
  9. Android 输入法键盘和activity页面遮挡问题解决
  10. mac下安装配置java jdk,maven,resin
  11. 读书笔记-你不知道的JS中-promise
  12. Pyharm中关于“warning: Debugger speedups using cython not found”问题的解决
  13. 【mysql】mysql 调优之 ——执行计划 explain
  14. @meda媒体查询
  15. Asp.Net MVC4中的全局过滤器
  16. [转]Oracle 中计算时间间隔的SQL 语句
  17. fiddler的inspectors传入的参数乱码
  18. 多线程之线程间协作的两种方式:wait、notify、notifyAll和Condition
  19. Python获取每一位的数字,并返回到列表
  20. java Web服务实现方案(REST+SOAP+XML-RPC)简述及比较

热门文章

  1. AOP设计思想_开发流程
  2. lr各种问题以及解决办法
  3. Windows Store App 过渡动画
  4. java selenium 题目一 如果定位动态变化的id
  5. 微信公众平台如何获取用户的OpenID(一)
  6. 开发实时壁纸(Live Wallpapers)
  7. HDU 4898 The Revenge of the Princess’ Knight ( 2014 Multi-University Training Contest 4 )
  8. C语言样式的文件操作函数
  9. ajaxsearch要点1
  10. sqoop的export导入到oracle中