如果你过了洛谷的但没过 SPOJ 和 UVA 的,请注意 long long 的问题,建议直接 define int long long 一劳永逸
long long
define int long long