随笔分类 -  高精度

摘要:Problems involving the computation of exact values of very large magnitude and precision are common. For example, the computation of the national debt 阅读全文
posted @ 2019-08-09 11:42 black_hole6 阅读(367) 评论(0) 推荐(0)
摘要:一个A和两个B一共可以组成三种字符串:"ABB","BAB","BBA". 给定若干字母和它们相应的个数,计算一共可以组成多少个不同的字符串. Input每组测试数据分两行,第一行为n(1<=n<=26),表示不同字母的个数,第二行为n个数A1,A2,...,An(1<=Ai<=12),表示每种字母 阅读全文
posted @ 2019-07-27 11:05 black_hole6 阅读(311) 评论(0) 推荐(0)
摘要:It’s time to fight the local despots and redistribute the land. There is a rectangular piece of land granted from the government, whos... 阅读全文
posted @ 2019-04-11 17:06 black_hole6 阅读(176) 评论(0) 推荐(0)
摘要:A + B Problem II I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B. InputThe... 阅读全文
posted @ 2019-04-11 16:53 black_hole6 阅读(594) 评论(0) 推荐(0)
摘要:度熊面前有一个全是由1构成的字符串,被称为全1序列。你可以合并任意相邻的两个1,从而形成一个新的序列。对于给定的一个全1序列,请计算根据以上方法,可以构成多少种不同的序列。Input这里包括多组测试数据,每组测试数据包含一个正整数NN,代表全1序列的长度。 1≤N≤2... 阅读全文
posted @ 2019-02-17 21:38 black_hole6 阅读(112) 评论(0) 推荐(0)
摘要:#include#include#include#includeusing namespace std;int main(){ int n,m; scanf("%d/%d",&n,&m); int cnt=0; printf("0."); while(n) { p... 阅读全文
posted @ 2019-01-22 13:22 black_hole6 阅读(364) 评论(0) 推荐(0)