結果

問題 No.3659 CONSTRUCTION 1,2,3
コンテスト
ユーザー manabeai
提出日時 2026-08-30 15:57:11
言語 Rust
(1.97.1 + proconio + num + itertools)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
WA  
実行時間 -
コード長 1,440 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 657 ms
コンパイル使用メモリ 183,324 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2026-08-30 15:57:17
合計ジャッジ時間 1,870 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 12 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#![allow(
    non_snake_case,
    unused_variables,
    unused_assignments,
    unused_mut,
    unused_imports,
    unused_macros,
    dead_code,
    static_mut_refs
)]

// use ac_library::*;
use itertools::Itertools;
use proconio::{input, derive_readable,marker::*};
use std::{cmp::*, collections::*, fmt::*, hash::*, marker::PhantomData, ops::*, println};
// use rustc_hash::*;

fn main() {
    input! {
        a:usize,
        b:usize,
        c:usize
    }

    let mut ans = "No";

    if a % 2 == 0 {
        if b % 3 == 0 || c % 3  == 0 { ans = "Yes" }
    }

    if a % 3 == 0 {
        if b % 2 == 0 || c % 2 == 0 { ans = "Yes" }
    }

    if b % 2 == 0 {
        if a % 3 == 0 || c % 3 == 0 { ans = "Yes" }
    }

    if b % 3 == 0 {
        if a % 2 == 0 || c % 2 == 0 { ans = "Yes" }
    }

    if c % 2 == 0 {
        if a % 3 == 0 || b % 3 == 0 { ans = "Yes" }
    }

    if c % 3 == 0 {
        if a % 2 == 0 || b % 2 == 0 { ans = "Yes" }
    }

    if (a % 2 == 0 && b % 3 == 0) || (a % 3 == 0 && b % 2 == 0) || (b % 2 == 0 && c % 3 == 0) || (b % 3 == 0 && c % 2 == 0) || (a % 2 == 0 && c % 3 == 0) || (c % 2 == 0 && a % 3 == 0) { ans = "Yes" }

    println!("{}",ans);
}

trait Pipe: Sized {
    fn pipe<F, T>(self, f: F) -> T
    where
        F: FnOnce(Self) -> T,
    {
        f(self)
    }
}
impl<T> Pipe for T {}

fn yesno(b: bool) {
    if b {
        println!("Yes");
    } else {
        println!("No");
    }
}
0