結果

問題 No.2677 Minmax Independent Set
ユーザー ngtkana
提出日時 2024-03-02 02:51:21
言語 Rust
(1.83.0 + proconio)
結果
WA  
実行時間 -
コード長 504 bytes
コンパイル時間 10,844 ms
コンパイル使用メモリ 400,592 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-09-30 00:12:28
合計ジャッジ時間 13,607 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 61
権限があれば一括ダウンロードができます

ソースコード

diff #

fn main() {
    let ccount = 999;
    let csize = 6;
    let n = ccount * csize + 1;
    let mut ans = Vec::new();
    for offset in (0..ccount).map(|cid| cid * csize) {
        ans.extend(
            [(0, 1), (1, 2), (1, 3), (2, 4), (3, 5)]
                .iter()
                .map(|(i, j)| (i + offset, j + offset)),
        );
        ans.push((offset, n - 1));
    }
    println!("{n}");
    for (x, y) in ans {
        let x = x + 1;
        let y = y + 1;
        println!("{x} {y}");
    }
}
0