23 条题解

  • 0
    @ 2024-3-12 20:59:12
    #include <iostream>
    #include <stdio.h>
    #include <math.h>
    #include <iomanip>
    using namespace std;
    const int N = 1e5 + 10;
    const int INF = 0x3f3f3f3f;
    int n; 
    int main()
    {
    	cin >> n;
    	cout << n * 2 << endl;
    	for( int i = 1 ; i < n ; i++ )
    	{
    		if( n % i == 0 )
    		{
    			cout << i << " ";
    		}
    	}
        return 0;
    }
    
    

    信息

    ID
    964
    时间
    1000ms
    内存
    256MiB
    难度
    3
    标签
    递交数
    486
    已通过
    275
    上传者