public static void main(String[] args) { Scanner sc = new Scanner(System.in); int t = sc.nextInt(); for (int i = 0; i < t; i++) { int C = sc.nextInt(); int n = sc.nextInt(); int m = sc.nextInt(); if (C == 1) { System.out.println(1); continue; } // cur当前可容纳人数 int cur = 2; int people = 2; int count = 1; boolean flag = true; n+=1; if(3*m+2*n < C){ flag = false;
点赞 评论

相关推荐

挣K存W养DOG:他真的很中意你,为什么不回他
点赞 评论 收藏
分享
牛客网
牛客企业服务