Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
50604 | 逸凡 | 202403-GESP-一级-找因数 | C++ | Accepted | 1 MS | 244 KB | 160 | 2024-09-01 13:36:45 |
#include<bits/stdc++.h> using namespace std; int main(){ int a; cin>>a; for(int i=1;i<=a;i++){ if(a%i==0){ cout<<i<<endl; } } return 0; }