2 条题解

  • 0
    @ 2023-9-10 15:30:28

    这是我的代码,可复制

    /****************************************
    Note:
    ****************************************/
    #include <queue>
    #include <math.h>
    #include <stack>
    #include <vector>
    #include <stdio.h>
    #include <iostream>
    #include <vector>
    #include <iomanip>
    #include <string.h>
    #include <cstring>
    #include <algorithm>
    #define int long long
    using namespace std;
    const int N = 1e6 + 10;
    const int INF = 0x3f3f3f3f;
    int n;
    signed main(){
    cin >> n;
    cout << n * 2 << endl;
    for(int i=1;i<=n/2;i++){
    if(n % i == 0) cout << i << " ";
    }
    cout << endl;
    return 0;
    }
    
    
    

    信息

    ID
    1419
    时间
    1000ms
    内存
    128MiB
    难度
    9
    标签
    递交数
    9
    已通过
    9
    上传者