提交时间:2025-12-06 13:20:55
运行 ID: 75399
#include <bits/stdc++.h> using namespace std; int main( ) { int h,s=0; cin>>h; for(int i=6;i<h;i++){ for(int w=1;w<=1.0*i/2;w++){ if(i%w==0){ s+=w; } } if(s==i){ cout<<s<<endl; } s=0; } return 0; }