1 条题解

  • 1
    @ 2026-7-20 18:28:38
    #include <bits/stdc++.h>
    using namespace std;
    
    int main() {
    	int a;
    	cin >> a;
    	for (int i = 1; i <= a / 2; i++) {
    		for (int j = a; j >= i; j--) {
    			if (j * i == a) {
    				cout << a << "=" << i << "*" << j << endl;
    			}
    		}
    	}
    	return 0;
    }
    
    
    
    • 1

    信息

    ID
    30501
    时间
    1000ms
    内存
    256MiB
    难度
    10
    标签
    递交数
    5
    已通过
    4
    上传者