摘要: Given a N × N matrix A, whose element in the i-th row and j-th column Aij is an number that equals i2 + 100000 × i + j2 - 100000 × j + i × j, you are 阅读全文
posted @ 2017-08-21 21:44 #Egoist# 阅读(184) 评论(0) 推荐(0) 编辑
摘要: Farmer John's N (1 <= N <= 50,000) cows (numbered 1..N) are planning to run away and join the circus. Their hoofed feet prevent them from tightrope wa 阅读全文
posted @ 2017-08-21 20:47 #Egoist# 阅读(230) 评论(0) 推荐(0) 编辑
摘要: It is very hard to wash and especially to dry clothes in winter. But Jane is a very smart girl. She is not afraid of this boring process. Jane has dec 阅读全文
posted @ 2017-08-21 16:48 #Egoist# 阅读(339) 评论(0) 推荐(0) 编辑