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