Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
47227 | yuzhengxun | 【例39.1】 鼓掌次数 | C++ | No Test Data | 0 MS | 0 KB | 172 | 2024-05-12 19:07:50 |
#include<bits/stdc++.h> using namespace std; int main() { int n,k,c=0; cin>>n>>k; for(int i=1;i<=n;i++){ if(i%k==0){ c++; } } cout<<c; return 0; }