結果
問題 | No.1850 Rewrite Product |
ユーザー |
|
提出日時 | 2022-09-26 23:30:14 |
言語 | Rust (1.83.0 + proconio) |
結果 |
WA
|
実行時間 | - |
コード長 | 701 bytes |
コンパイル時間 | 15,748 ms |
コンパイル使用メモリ | 379,020 KB |
実行使用メモリ | 12,800 KB |
最終ジャッジ日時 | 2024-12-22 16:02:50 |
合計ジャッジ時間 | 15,915 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | WA * 1 |
ソースコード
fn solve() -> String {let mut xy = String::new();std::io::stdin().read_line(&mut xy).ok();let xy: Vec<usize> = xy.trim().split_whitespace().map(|s| s.parse().unwrap()).collect();let x = xy[0];let y = xy[1];if x <= 3 {if y <= x {"Yes".to_string()} else {"No".to_string()}} else {"Yes".to_string()}}fn main() {let mut t = String::new();std::io::stdin().read_line(&mut t).ok();let t: usize = t.trim().parse().unwrap();let mut result = Vec::with_capacity(t);for _ in 0..t {result.push(solve());}for v in result.iter() {println!("{}", v);}}