摘要: 现有21根火柴,两人轮流取,每人每次可以取走1至4根,不可多取,也不能不取,谁取最后一根火柴谁输。 规则,人先取,计算机后取,计算机为“常胜将军”。using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 常胜将军{ class Program { static void Main(string[] args) { //现有21根火柴,两人轮流取,每人每次可以取走1至4根,不可多取,也不能不取,谁取最后... 阅读全文
posted @ 2012-10-28 14:41 阿朱姐姐 阅读(273) 评论(0) 推荐(0) 编辑

友情链接:@开源中国

回到顶部