2011年11月13日

摘要: 《李白沽酒》:李白无事街上走,提壶去打酒.遇店加一倍,见花喝一斗.五遇店和花,喝光壶中酒.试问此壶中,原有多少酒?原诗是三遇店和花,这里改成了五次,后面有提示:由于古代没有小数,所以都用整数。假设,壶中酒数都是整数,代码如下:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Program { static void Main(string[] args) { ... 阅读全文
posted @ 2011-11-13 14:17 Henry_Wang 阅读(1174) 评论(0) 推荐(0) 编辑

导航