結果

問題 No.3155 Same Birthday
ユーザー urectanc
提出日時 2025-05-23 19:01:58
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 24 ms / 2,000 ms
コード長 254 bytes
コンパイル時間 25,011 ms
コンパイル使用メモリ 378,976 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2025-05-23 19:03:04
合計ジャッジ時間 27,683 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 49
権限があれば一括ダウンロードができます

ソースコード

diff #

use proconio::input;

fn main() {
    input! {
        n: usize,
        mut birthday: [(usize, usize); n]
    }
    birthday.sort_unstable();
    birthday.dedup();
    let ans = birthday.len() == n;
    println!("{}", if ans { "No" } else { "Yes" });
}
0