結果

問題 No.2677 Minmax Independent Set
ユーザー ngtkana
提出日時 2024-03-02 02:50:36
言語 Rust
(1.83.0 + proconio)
結果
WA  
実行時間 -
コード長 504 bytes
コンパイル時間 12,203 ms
コンパイル使用メモリ 388,320 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-09-30 00:11:48
合計ジャッジ時間 15,352 ms
ジャッジサーバーID
(参考情報)
judge5 / 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), (2, 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