随笔分类 -  模拟

摘要:1026 Table Tennis (30分) A table tennis club has N tables available to the public. The tables are numbered from 1 to N. For any pair of players, if the 阅读全文
posted @ 2020-06-26 23:23 Cruel_King 阅读(172) 评论(0) 推荐(0) 编辑
摘要:1009 Product of Polynomials (25分) This time, you are supposed to find A×B where A and B are two polynomials. Input Specification: Each input file cont 阅读全文
posted @ 2020-03-14 15:56 Cruel_King 阅读(128) 评论(0) 推荐(0) 编辑
摘要:最近刷pat的时候遇到的题,才发现打比赛训练的时候都没有训练过大数除法,现在练练手写一下,其实和大数加法等思路一样,就是模拟,用字符串模拟除法,保存中间状态。 直接上代码了哈。有不懂的私聊问俺。 /* A除以B:本题是较大的数除以一个较小的数,模拟小学除法。。。或者 java python */ # 阅读全文
posted @ 2020-03-06 14:26 Cruel_King 阅读(198) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示