题目:
http://codeforces.com/problemset/problem/707/C
弱鸡代码
1 #include <bits/stdc++.h> 2 using namespace std; 3 int main() 4 { 5 long long int a; 6 cin>>a; 7 a<=2?cout<<-1:(a%2?(cout<<a*a/2<<" "<<a*a/2+1):(cout<<a*a/4-1<<" "<<a*a/4+1)); 8 }
只有不断学习才能进步!