| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 14272 | xingru | 求约数 | C++ | Accepted | 0 MS | 252 KB | 197 | 2023-04-12 16:20:40 |
#include<bits/stdc++.h> using namespace std; int main() { int a,b=0; cin>>a; for(int i=1;i<=a;i++){ if(a%i==0){ cout<<i<<" "; b++; } } cout<<endl<<" "<<b; return 0; }