提交时间:2023-05-10 12:40:03
运行 ID: 17003
#include<bits/stdc++.h> using namespace std; int main() { int s, cnt = 0; cin >> s; for (int chang = s; chang >= 1; chang--) { if(s % chang == 0 && chang >= s / chang) { //cout << chang <<" " <<s / chang << endl; cnt++; } } cout << cnt; return 0; }