题目链接:http://codeforces.com/problemset/problem/697/A 题目大意: 输入三个数 t,s,x; 判断x是否合适 合适的位置位 t , t+s, t+s+1, t+2s , t+2s+1 ,t+3s, t+3s+1 ...... 如果在合适的位置中,输出 “YES” 不合适输出“NO” 解题思路: 如果x<t 不合适 如果 (x-t)%s !=0|| !=1 合适 [注意要排除 x=t+1 这种情况] AC Code : #include<stdio…