随笔分类 - 模拟
摘要: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
阅读全文
摘要: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
阅读全文
摘要:最近刷pat的时候遇到的题,才发现打比赛训练的时候都没有训练过大数除法,现在练练手写一下,其实和大数加法等思路一样,就是模拟,用字符串模拟除法,保存中间状态。 直接上代码了哈。有不懂的私聊问俺。 /* A除以B:本题是较大的数除以一个较小的数,模拟小学除法。。。或者 java python */ #
阅读全文