Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
57251 zhangweiran 求约数 C++ Accepted 0 MS 244 KB 204 2024-11-22 14:21:12

Tests(1/1):


#include<iostream> using namespace std; int main() { int a,cnt=0; cin>>a; for(int i=1;i<=a;i++) { if(a%i==0) { cout<<i<<" "; cnt++; } } cout<<'\n'<<" "<<cnt; return 0; }


Judgement Protocol: