結果
問題 | No.2515 Similar Triangles |
ユーザー |
|
提出日時 | 2023-10-27 21:43:24 |
言語 | Rust (1.83.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 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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)]` 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`
ソースコード
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;}}