23 条题解

  • 0
    @ 2022-1-10 11:46:58
    #include<iostream>
    #include <math.h>
    #include <stdio.h>
    using namespace std;
    int main()
    {
    	int n;
    	cin >> n;
    	int x = n+1;
    	while(x%n != 0)
    	    x++;
    	cout << x << endl;
    	for(int i = 1; i < n ; i++)
    	{
    		if(n%i == 0)
    		    cout << i << " "; 
    	}
    }
    

    信息

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