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();
    }
}
posted @ 2025-04-09 10:37  kayaker  阅读(12)  评论(0)    收藏  举报