您当前的位置: 首页 > 

*DDL_GzmBlog

暂无认证

  • 1浏览

    0关注

    605博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

[补题|题解] Codeforces Round #739 (Div. 3)

*DDL_GzmBlog 发布时间:2021-09-30 09:27:36 ,浏览量:1

目录
    • A. Dislike of Threes
    • B.Who's Opposite?
    • C. Infinity Table
    • D.Make a Power of Two
      • D1.CODE 手动预处理+复杂的判断
        • D2.CODE 位移预处理+简单判断

A. Dislike of Threes

预处理 可能的数组就可以直接过

B.Who’s Opposite?

分类讨论一下

  • 不可能的情况
  1. 利用关系反过来求 a–>b 矛盾
  2. 最大节点比要求节点还大
#include 
using namespace std;
const int N = 1100;
int num[N];
void solve()
{
    int a,b,c;
    cin>>a>>b>>c;
    int x = abs(a-b);
 
    if(x*2             
关注
打赏
1657615554
查看更多评论
0.0386s