2090A - A. Treasure Hunt
public class App {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.nextLine());
for (int i = 0; i < n; ++i) {
int x = sc.nextInt();
int y = sc.nextInt();
int a = sc.nextInt();
System.out.println((a % (x + y)) >= x ? "YES" : "NO");
sc.nextLine();
}
sc.close();
}
}

浙公网安备 33010602011771号