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