对于给定的两个正整数 和 ,是否能构造出 对不同的正整数 ,使得 。 我们认为两对正整数 和 是不同的,当且仅当 。
区块链毕设网qklbishe.com为您提供问题的解答
public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); while (scanner.hasNextInt()) { int n = scanner.nextInt(); int k = scanner.nextInt(); if (k <= (n - 1)) { System.out.println("YES"); } else { System.out.println("NO"); } } } }
12:39
以上就是关于问题对于给定的两个正整数 和 ,是否能构造出 对不同的正整数 ,使得 。
我们认为两对正整数 和 是不同的,当且仅当 。的答案
欢迎关注区块链毕设网-
web3一级市场套利打新赚钱空投教程
区块链NFT链游项目方科学家脚本开发培训