Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
47160 | jiabokai | 【例33.3】 凑数 | C++ | No Test Data | 0 MS | 0 KB | 196 | 2024-05-12 17:13:30 |
#include<bits/stdc++.h> using namespace std; int main(){ int x,y,max=0; cin>>x>>y; for(int i=0;i<=1000;i++){ if(i%x==0&&i%y==0&&i>max){ max=i; } } cout<<max; return 0; }