随笔分类 - JAVA
摘要:一个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...
阅读全文
摘要: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, ...
阅读全文

浙公网安备 33010602011771号