保存されている過去のバージョンの一覧

2019年09月26日01時47分11秒

Codeforces Round #587 DIV3 C問題 - White Sheet

Source

Codeforces Round #587 DIV3 C問題
Problem description

問題概要

省略

解法

省略

cLayversion 20190925-1)のコード

C++に変換後のコードはこちら

//no-unlocked
{
  int x1, x2, y1, y2;
  int x3, x4, y3, y4;
  rd(x1,y1,x2,y2);

  rep(2){
    rd(x3,y3,x4,y4);
    if(x3 <= x1 <= x2 <= x4){
      if(y3 <= y1) y1 >?= y4;
      if(y4 >= y2) y2 <?= y3;
    }
    if(y3 <= y1 <= y2 <= y4){
      if(x3 <= x1) x1 >?= x4;
      if(x4 >= x2) x2 <?= x3;
    }
    if(x1 >= x2 || y1 >= y2) wt("NO"), return 0;
  }

  wt("YES");
}

Current time: 2024年03月28日18時21分21秒
Last modified: 2019年09月26日01時47分11秒 (by laycrs)
Tags: Competitive_Programming_Incomplete Codeforces CF587 CF_Div3_C
トップページに戻る

Logged in as: unknown user (not login)

ログイン: