摘要: Chiaki often participates in international competitive programming contests. The time zone becomes a big problem. Given a time in Beij... 阅读全文
posted @ 2018-07-25 21:21 StarHai 阅读(347) 评论(0) 推荐(0) 编辑
摘要: hiaki has an array of nn positive integers. You are told some facts about the array: for every two elements aiai and ajaj in the subar... 阅读全文
posted @ 2018-07-25 21:18 StarHai 阅读(352) 评论(0) 推荐(0) 编辑
摘要: Chiaki has 3n3n points p1,p2,…,p3np1,p2,…,p3n. It is guaranteed that no three points are collinear. Chiaki would like to construct nn ... 阅读全文
posted @ 2018-07-25 21:03 StarHai 阅读(349) 评论(0) 推荐(0) 编辑
摘要: Given an integer nn, Chiaki would like to find three positive integers xx, yy and zzsuch that: n=x+y+zn=x+y+z, x∣nx∣n, y∣ny∣n, z∣nz∣n ... 阅读全文
posted @ 2018-07-25 21:01 StarHai 阅读(282) 评论(0) 推荐(0) 编辑
摘要: You surely have never heard of this new planet surface exploration scheme, as it is being carried out in a project with utmost secrecy... 阅读全文
posted @ 2018-07-25 20:47 StarHai 阅读(224) 评论(0) 推荐(0) 编辑
摘要: Senior Pan fails in his discrete math exam again. So he asks Master ZKC to give him graph theory problems everyday. The task is simple... 阅读全文
posted @ 2018-07-25 20:36 StarHai 阅读(252) 评论(0) 推荐(0) 编辑
摘要: LsF is visiting a local amusement park with his friends, and a mirror room successfully attracts his attention. Inside the mirror room... 阅读全文
posted @ 2018-07-25 17:25 StarHai 阅读(205) 评论(0) 推荐(0) 编辑