摘要:
Given a set of integers (it can contain equal elements). You have to split it into two subsets AA and BB (both of them can contain equal elements or b 阅读全文
摘要:
You are playing a very popular game called Cubecraft. Initially, you have one stick and want to craft kk torches. One torch can be crafted using one s 阅读全文
摘要:
Problem Description: Alexandra has an even-length array aa, consisting of 00s and 11s. The elements of the array are enumerated from 11 to nn. She wan 阅读全文
摘要:
Problem Description You are given N baskets of gold coins. The baskets are numbered from 1 to N. In all except one of the baskets, each gold coin weig 阅读全文
摘要:
Problem Description I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B. Input The first line 阅读全文
摘要:
Problem Description 有 n(n<=100) 个整数,已经按照从小到大顺序排列好,现在另外给一个整数x,请将该数插入到序列中,并使新的序列仍然有序。 Input 输入数据包含多个测试实例,每组数据由两行组成, 第一行是 n 和 m,第二行是已经有序的n 个数的数列。 n 和 m 同 阅读全文