试试什么样子
Difference between en1 and en2, changed 20 character(s)
OK,lets go↵
------------------↵
↵
↵
~~~~~↵
#include<bits/stdc++.h>↵
↵
using namespace std;↵
↵
int main()↵
{↵
ios::sync_with_stdio(false);↵
int t,s,x;↵
scanf("%d%d%d",&t,&s,&x);↵
int mod ;↵
if(s<=(x-t)||x==t) mod=(x-t)%s;↵
else mod=-1;↵
if(mod==0||mod==1) puts("YES");↵
else puts("NO");↵
}
↵
~~~~~↵
↵

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Dirring 2016-09-13 12:47:02 20
en1 English Dirring 2016-09-13 12:46:25 293 Initial revision (published)