摘要:
1 import java.io.*; 2 import java.util.*; 3 4 public class Solution { 5 6 public static void insertionSort(int[] ar) 7 { 8 i... 阅读全文
摘要:
You are asked to calculate factorials of some small positive integers.InputAn integer t, 1 0){20 int num = Integer.parseInt(bf.readLine())... 阅读全文
摘要:
The most important part of a GSM network is so called Base Transceiver Station (BTS). These transceivers form the areas called cells (this term gave t... 阅读全文
摘要:
The purpose of this problem is to verify whether the method you are using to read input data is sufficiently fast to handle problems branded with the ... 阅读全文
摘要:
Sherlock and The BeastSherlock Holmes is getting paranoid about Professor Moriarty, his archenemy. All his efforts to subdue Moriarty have been in vai... 阅读全文
摘要:
Animesh has N empty candy jars, numbered from 1 to N, with infinite capacity. He performs M operations. Each operation is described by 3 integers a, b... 阅读全文
摘要:
Find DigitsProblem StatementGiven a number you have to print how many digits in that number exactly divides that number.Input formatThe first line con... 阅读全文
摘要:
Change language :Manasa 和 她的朋友出去徒步旅行。她发现一条小河里边顺序排列着带有数值的石头。她开始沿河而走,发现相邻两个石头上的数值增加 a 或者 b. 这条小河的尽头有一个宝藏,如果Manasa能够猜出来最后一颗石头上的数值,那么宝藏就是她的。假设第一个石头的上数值为0,... 阅读全文
摘要:
Little Bob loves chocolates, and goes to the store with $N money in his pocket. The price of each chocolate is $C. The store offers a discount: for ev... 阅读全文
摘要:
给定两个整数:L 和 R∀ L ≤ A ≤ B ≤ R, 找出 A xor B 的最大值。输入格式第一行包含 L 第一行包含 R数据范围1 ≤ L ≤ R ≤ 103输出格式输出最大的异或和题解: 1 import java.io.*; 2 import java.util.*; 3 import ... 阅读全文