Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
20295 | 张熠欣 | 求能被整除的最小整数 | C++ | Accepted | 100 | 0 MS | 248 KB | 190 | 2021-06-07 20:11:36 |
#include<bits/stdc++.h> using namespace std; int main(){ int m,n,a; cin>>m>>n>>a; for(int i=m;i<=n;i++){ if(i%a==0){ cout<<i; return 0; } } cout<<-1; return 0; }