結果

問題 No.2515 Similar Triangles
コンテスト
ユーザー ardririy
提出日時 2023-10-27 21:43:24
言語 Rust
(1.97.1 + proconio + num + itertools + ACL)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
AC  
実行時間 0 ms / 2,000 ms
+ 887µs
コード長 340 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 649 ms
コンパイル使用メモリ 175,072 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2026-09-04 04:01:00
合計ジャッジ時間 2,155 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7
権限があれば一括ダウンロードができます
コンパイルメッセージ
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)]` (part of `#[warn(unused)]`) 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 #
raw source code

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