社区讨论

90分求条(必关)

P14257嫉妒(jealousy)参与者 3已保存回复 2

讨论操作

快速查看讨论及其快照的属性,并进行相关操作。

当前回复
2 条
当前快照
1 份
快照标识符
@mlnfs6h2
此快照首次捕获于
2026/02/15 15:41
4 天前
此快照最后确认于
2026/02/15 23:56
4 天前
查看原帖
CPP
#include<bits/stdc++.h>
using namespace std;
int n,y,s,t;
int main(){
    cin>>n>>y>>s>>t;
    for(int i=1;i<=n;i++)
        if(((i-1)*s-y)%t!=0 and (i*s-y)%t!=0){
            cout<<"Yes";
            return 0;
        }
    cout<<"No";
    return 0;
}
WA on #5

回复

2 条回复,欢迎继续交流。

正在加载回复...