55
265
版主
#include<bits/stdc++.h> using namespace std; int main(){ int p,e,i,d; cin>>p>>e>>i>>d; for(int j=1;j>=0;j++){ d=d+1; if(d%(23-p)==d%(28-e)&&d%(28-e)==d%(33-i)){ cout<<d; return 0; } } }
使用道具 举报
|山东智趣岛论坛 ( 鲁ICP备2023024048号 )
GMT+8, 2025-3-1 07:13 , Processed in 0.201822 second(s), 35 queries .
Powered by Discuz! X3.3 Licensed
Copyright © 2001-2020, Tencent Cloud.