0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

初心者プログラマーがAtCoderに挑んだ軌跡-ABC405-A-

Posted at

ABC405-A

問題の内容

参加資格の有無を判定する

言語

Rust

解法

条件通りif文で分岐する

課題

特になし

学んだこと

特になし

提出内容

use proconio::input;

fn main() {
  input! {
    r: i64,
    x: i64,
  }
  if x == 1 && 1600 <= r && r <= 2999 {
    println!("Yes");
  } else if x == 2 && 1200 <= r && r <= 2399 {
    println!("Yes");
  } else {
    println!("No");
  }
}

成績

  • 251Byte
  • AC
  • 1ms
  • 2080KiB
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?