摘要: 题目略坑。因为细节问题wa了几次。acm.hdu.edu.cn/showproblem.php?pid=4811 1 #include 2 #include 3 #include 4 5 using namespace std; 6 typedef __int64 LL; 7 8 9 L... 阅读全文
posted @ 2015-08-18 22:11 astoninfer 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 给定两个数字显示板A, B和两个按钮,按下按钮使得其对应数字显示增加1。另,B显示板只显示其实际值的整数部分。两显示器对应的实际值有一个比值p。按下A板上的按钮, A板上显示的数增加1到a + 1, p不变,B板上的数字更新为(int)(b * (a + 1) / a)。按下B板上的按钮,A板上上显... 阅读全文
posted @ 2015-08-18 16:07 astoninfer 阅读(185) 评论(0) 推荐(0) 编辑