結果

問題 No.2515 Similar Triangles
ユーザー ardririyardririy
提出日時 2023-10-27 21:43:24
言語 Rust
(1.77.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 340 bytes
コンパイル時間 17,981 ms
コンパイル使用メモリ 402,820 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-25 13:49:00
合計ジャッジ時間 15,340 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
6,820 KB
testcase_01 AC 1 ms
6,812 KB
testcase_02 AC 1 ms
6,816 KB
testcase_03 AC 0 ms
6,948 KB
testcase_04 AC 1 ms
6,944 KB
testcase_05 AC 1 ms
6,944 KB
testcase_06 AC 1 ms
6,940 KB
testcase_07 AC 1 ms
6,940 KB
testcase_08 AC 1 ms
6,940 KB
testcase_09 AC 1 ms
6,944 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
warning: unused variable: `x1`
 --> src/main.rs:5:9
  |
5 |         x1: usize,
  |         ^^ help: if this is intentional, prefix it with an underscore: `_x1`
  |
  = note: `#[warn(unused_variables)]` on by default

warning: unused variable: `x2`
 --> src/main.rs:7:9
  |
7 |         x2: usize,
  |         ^^ help: if this is intentional, prefix it with an underscore: `_x2`

warning: unused variable: `x3`
 --> src/main.rs:9:9
  |
9 |         x3: usize
  |         ^^ help: if this is intentional, prefix it with an underscore: `_x3`

ソースコード

diff #

use proconio::input;

fn solve(){
    input! {
        x1: usize,
        y1: usize,
        x2: usize,
        y2: usize,
        x3: usize
    }


    if y1 == y2 {
        println!("Yes");
    }else{
        println!("No");
    }
}

fn main() {
    let mut i: usize = 1;
    
    while i != 0 {
        solve();
        i -= 1;
    }
}

0