Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
353699 | 胡珂 | 【C1-7】k的倍数 | C++ | Accepted | 100 | 4 MS | 252 KB | 182 | 2025-09-30 20:22:27 |
#include <bits/stdc++.h> using namespace std; int main(){ int k,x,y,sum=0; cin>>k>>x>>y; for(int i=x;i<=y;i++){ if(i%k==0){ sum++; } } cout<<sum; return 0; }