1 条题解

  • 0
    @ 2026-8-21 14:25:27
    #include <bits/stdc++.h>
    using namespace std;
    int x;
    
    int main() {
    	cin >> x;
    	cout << 2 << "\n";
    	if (x % 2 == 0) {
    		cout << x / 2 - 1 << " " << x / 2 + 1;
    	} else {
    		cout << x / 2 << " " <<x- x / 2 ;
    	}
    	return 0;
    }
    

    信息

    ID
    31308
    时间
    1000ms
    内存
    256MiB
    难度
    7
    标签
    递交数
    28
    已通过
    7
    上传者