The Longest Straight FZU - 2216

原创 2018年04月15日 16:26:43

E - The Longest Straight

题目链接:FZU - 2216
#include <iostream>
#include <algorithm>
#include <string.h>
#include <math.h>
using namespace std;
int main(){
	int T;
	cin >>T;
	while(T--){
		int n, m;
		cin >>n >>m;
		if(m%2&&n>=m/2*3 || m%2==0&&n>=m/2*3-1) cout << "Yes\n";
		else cout << "No\n";
	}
	return 0;
}


版权声明:欢迎大家指正错误,有不同观点的欢迎评论,共同进步 https://blog.csdn.net/Sirius_han/article/details/79950340

FZU 2216 The Longest Straight 枚举+二分

FZU 2216 The Longest Straight 枚举+二分
  • qq_26071477
  • qq_26071477
  • 2016-08-20 18:29:40
  • 313

fzu 2216 The Longest Straight

Problem 2216 The Longest Straight Accept: 178    Submit: 536 Time Limit: 1000 mSec    Memory Limit :...
  • qq1059752567
  • qq1059752567
  • 2016-04-24 21:09:53
  • 391

FZU 2216 The Longest Straight (二分)

Problem 2216 The Longest Straight Accept: 128    Submit: 369 Time Limit: 1000 mSec    Memory Lim...
  • L_BestCoder
  • L_BestCoder
  • 2016-04-03 17:37:11
  • 329

FZU Problem 2216 The Longest Straight(二分答案+树状数组)——第六届福建省大学生程序设计竞赛-重现赛

FZU Problem 2216 The Longest Straight(二分答案+树状数组)——第六届福建省大学生程序设计竞赛-重现赛...
  • queuelovestack
  • queuelovestack
  • 2016-09-08 16:36:18
  • 416

FZU2216 The Longest Straight

题目链接:https://www.nitacm.com/problem_show.php?pid=10964题解:题目大意: 给你n张牌,这些牌的大小从0到m,0牌是万能牌,可以用它变成任何的牌,问...
  • silver_bone
  • silver_bone
  • 2017-02-26 20:15:11
  • 104

FZU 2216 The Longest Straight (二分)

FZU 2216 The Longest Straight (二分)
  • Tc_To_Top
  • Tc_To_Top
  • 2016-08-20 19:42:02
  • 346

FZU 2216 The Longest Straight (尺取法)

Description ZB is playing a card game where the goal is to make straights. Each card in the deck...
  • qq_28954601
  • qq_28954601
  • 2018-01-27 22:47:05
  • 58

fzu 2216 The Longest Straight 二分

题目链接http://acm.fzu.edu.cn/problem.php?pid=2216题意给出n张牌,每张牌有个数值,n张牌中最大的值为m。值为0的牌可以代替任意值,问可以凑出最长顺子的长度是多...
  • chen_minghui
  • chen_minghui
  • 2017-10-06 13:31:36
  • 54

FZU - 2216 The Longest Straight (单调)

E - The Longest Straight  FZU - 2216  单调队列维护前缀 时间复杂度是O(m+m) 时间大约是200ms 桶处理数据 判断每一...
  • qq_30591245
  • qq_30591245
  • 2017-05-01 11:06:21
  • 94

The Longest Straight FZU - 2216(模拟或二分)

E - The Longest Straight ...
  • Sirius_han
  • Sirius_han
  • 2018-04-15 17:55:52
  • 4
收藏助手
不良信息举报
您举报文章:The Longest Straight FZU - 2216
举报原因:
原因补充:

(最多只允许输入30个字)