随笔分类 -  JAVA

摘要:一个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)
摘要:Given an integer N(0 ≤ N ≤ 10000), your task is to calculate N! InputOne N in one line, process to the end of file. OutputFor each N, ... 阅读全文
posted @ 2019-01-20 22:29 black_hole6 阅读(169) 评论(0) 推荐(0)