結果
| 問題 | No.3659 CONSTRUCTION 1,2,3 |
| コンテスト | |
| ユーザー |
manabeai
|
| 提出日時 | 2026-08-30 15:57:53 |
| 言語 | Rust (1.97.1 + proconio + num + itertools) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 1,494 bytes |
| 記録 | |
| コンパイル時間 | 500 ms |
| コンパイル使用メモリ | 184,204 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-08-30 15:58:08 |
| 合計ジャッジ時間 | 1,942 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 WA * 3 |
ソースコード
#![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");
}
}
manabeai