Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
334780 | 陈信宇 | 【C1-7】k的倍数 | C++ | 解答错误 | 50 | 3 MS | 248 KB | 186 | 2025-07-18 21:42:01 |
#include<bits/stdc++.h> using namespace std; int main() { int n,k,x; cin>>n>>k>>x; int s=0; for(int i=k;i<=x;i++){ if(i%k==0){ s++; } } cout<<s; return 0; }