随笔分类 - 高精度
摘要:Problems involving the computation of exact values of very large magnitude and precision are common. For example, the computation of the national debt
阅读全文
摘要:一个A和两个B一共可以组成三种字符串:"ABB","BAB","BBA". 给定若干字母和它们相应的个数,计算一共可以组成多少个不同的字符串. Input每组测试数据分两行,第一行为n(1<=n<=26),表示不同字母的个数,第二行为n个数A1,A2,...,An(1<=Ai<=12),表示每种字母
阅读全文
摘要:It’s time to fight the local despots and redistribute the land. There is a rectangular piece of land granted from the government, whos...
阅读全文
摘要: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...
阅读全文
摘要:度熊面前有一个全是由1构成的字符串,被称为全1序列。你可以合并任意相邻的两个1,从而形成一个新的序列。对于给定的一个全1序列,请计算根据以上方法,可以构成多少种不同的序列。Input这里包括多组测试数据,每组测试数据包含一个正整数NN,代表全1序列的长度。 1≤N≤2...
阅读全文
摘要:#include#include#include#includeusing namespace std;int main(){ int n,m; scanf("%d/%d",&n,&m); int cnt=0; printf("0."); while(n) { p...
阅读全文

浙公网安备 33010602011771号