摘要: UVA 12563 (If you smiled when you see the title, this problem is for you ^_^) For those who don’t know KTV, see: http://en.wikipedia.org/wiki/Karaoke_ 阅读全文
posted @ 2018-08-06 10:50 cifiyoo 阅读(85) 评论(0) 推荐(0) 编辑
摘要: UVA 1220 Dear Contestant, I’m going to have a party at my villa at Hali Bula to celebrate my retirement from BCM. I wish I could invite all my co work 阅读全文
posted @ 2018-08-06 10:41 cifiyoo 阅读(196) 评论(0) 推荐(0) 编辑
摘要: UVA 12716 Given an integer N, find how many pairs (A, B) are there such that: gcd(A, B) = A xor B where 1 ≤ B ≤ A ≤ N. Here gcd(A, B) means the greate 阅读全文
posted @ 2018-08-06 10:27 cifiyoo 阅读(128) 评论(0) 推荐(0) 编辑