結果

問題 No.2515 Similar Triangles
ユーザー Taka
提出日時 2023-10-28 03:19:37
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 479 bytes
コンパイル時間 19,502 ms
コンパイル使用メモリ 400,316 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-25 16:00:03
合計ジャッジ時間 14,405 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

use std::io;

fn main(){

    let mut input = String::new();
    io::stdin().read_line(&mut input).unwrap();
    let values: Vec<i32> = input
        .split_whitespace()
        .map(|x| x.parse().unwrap())
        .collect();

    let _x1 = values[0];
    let y1 = values[1];
    let _x2 = values[2];
    let y2 = values[3];
    let _x3 = values[4];

    let ans: &str;

    if y1==y2 {
        ans = "Yes";
    }

    else{
        ans = "No";
    }

    println!("{}", ans);
}
0