摘要:
Description You are given two pots, having the volume of A and B liters respectively. The following operations can be performed: FILL(i) fill the pot 阅读全文
摘要:
有这样一段程序,fun会对整数数组A进行求值,其中Floor表示向下取整: fun(A) sum = 0 for i = 1 to A.length for j = i+1 to A.length sum = sum + Floor((A[i]+A[j])/(A[i]*A[j])) return s 阅读全文
摘要:
Description Given a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1*1 or greater locate 阅读全文
摘要:
描述As we known, data stored in the computers is in binary form. The problem we discuss now is about the positive integers and its binary form.Given a p 阅读全文
摘要:
Description Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,00 阅读全文