Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
47228 | menziyi | 【例39.1】 鼓掌次数 | C++ | No Test Data | 0 MS | 0 KB | 162 | 2024-05-12 19:08:04 |
#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; }