Codeforces Round #188 (Div. 1) / 317A Perfect Pair(数学&优化)
A. Perfect Pairhttp://codeforces.com/problemset/problem/317/Atime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output