int a[2][110]; int main() { int n; a[0][4] = 0; a[0][5] = 0; a[0][6] = 6; a[1][4] = 2; a[1][5] = 0; a[1][6] = 9; while (~RI(n)) { if (n <= 6) { printf("%d %d\n", a[0][n], a[1][n]); } else { cout << 1LL * (n - 3) * n / 2 << ' '; if (n & 1) cout << 0 << endl; else cout << 1LL * (n - 3) * n / 2 << endl; } } return 0; }
Parallel and Perpendicular,布布扣,bubuko.com
原文:http://blog.csdn.net/wty__/article/details/38510923