Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
43040 | yuzhengxun | 1的个数 | C++ | Wrong Answer | 1 MS | 236 KB | 150 | 2024-03-06 19:58:20 |
#include<iostream> using namespace std; int main() { int n,s; cin>>n; for(int i=1;i<=n;i++){ if(n/i==1) s++; } cout<<s; return 0; }