結果
問題 | No.2525 Great Move |
ユーザー | tttttaaa |
提出日時 | 2023-11-03 21:24:32 |
言語 | Rust (1.77.0 + proconio) |
結果 |
RE
|
実行時間 | - |
コード長 | 4,876 bytes |
コンパイル時間 | 13,837 ms |
コンパイル使用メモリ | 392,324 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-25 18:59:44 |
合計ジャッジ時間 | 15,025 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | RE | - |
testcase_02 | RE | - |
testcase_03 | RE | - |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
testcase_07 | RE | - |
testcase_08 | RE | - |
testcase_09 | RE | - |
testcase_10 | RE | - |
testcase_11 | RE | - |
testcase_12 | RE | - |
testcase_13 | RE | - |
testcase_14 | RE | - |
testcase_15 | RE | - |
testcase_16 | RE | - |
testcase_17 | RE | - |
testcase_18 | RE | - |
testcase_19 | RE | - |
testcase_20 | AC | 1 ms
6,944 KB |
testcase_21 | AC | 1 ms
6,944 KB |
testcase_22 | AC | 1 ms
6,940 KB |
testcase_23 | AC | 1 ms
6,940 KB |
testcase_24 | AC | 1 ms
6,944 KB |
testcase_25 | AC | 0 ms
6,944 KB |
testcase_26 | AC | 1 ms
6,944 KB |
testcase_27 | AC | 1 ms
6,944 KB |
testcase_28 | AC | 1 ms
6,948 KB |
コンパイルメッセージ
warning: unused variable: `writer` --> src/main.rs:13:10 | 13 | fn _main(writer:&mut std::io::BufWriter<StdoutLock>) { | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_writer` | = note: `#[warn(unused_variables)]` on by default
ソースコード
#![allow(unused_imports)] #![allow(unused_macros)] #![allow(dead_code)] #![allow(non_snake_case)] pub use __cargo_equip::prelude::*; use kyopro_io::get; use kyopro_uitls::echo; use std::io::{Write, StdoutLock}; const MULTIPLE_TEST_CASE: bool = false; fn _main(writer:&mut std::io::BufWriter<StdoutLock>) { let (n,m) = get!{i64,i64}; let ans=if (n-m)%2==0{"Possible"}else{"Impossible"}; echo!(ans); } // writeln!(writer, "{}", n).unwrap(); fn main() { let t = if MULTIPLE_TEST_CASE { get!(usize) } else { 1 }; let stdout = std::io::stdout(); let mut writer = std::io::BufWriter::new(stdout.lock()); for _ in 0..t { _main(&mut writer); } } // The following code was expanded by `cargo-equip`. /// # Bundled libraries /// /// - `kyopro-io 0.1.0 (path+████████████████████████████████████████████████)` published in **missing** licensed under `CC0-1.0` as `crate::__cargo_equip::crates::kyopro_io` /// - `kyopro-utils 0.1.0 (path+███████████████████████████████████████████████████)` published in **missing** licensed under `CC0-1.0` as `crate::__cargo_equip::crates::kyopro_uitls` #[cfg_attr(any(), rustfmt::skip)] #[allow(unused)] mod __cargo_equip { pub(crate) mod crates { pub mod kyopro_io {pub use crate::__cargo_equip::macros::kyopro_io::*;#[macro_export]macro_rules!__cargo_equip_macro_def_kyopro_io_get{($t:ty)=>{{let mut line:String=String::new();std::io::stdin().read_line(&mut line).unwrap();line.trim().parse::<$t>().unwrap()}};($($t:ty),*)=>{{let mut line:String=String::new();std::io::stdin().read_line(&mut line).unwrap();let mut iter=line.split_whitespace();($(iter.next().unwrap().parse::<$t>().unwrap(),)*)}};($t:ty;$n:expr)=>{(0..$n).map(|_|get!($t)).collect::<Vec<_>>()};($($t:ty),*;$n:expr)=>{(0..$n).map(|_|get!($($t),*)).collect::<Vec<_>>()};($t:ty;;)=>{{let mut line:String=String::new();std::io::stdin().read_line(&mut line).unwrap();line.split_whitespace().map(|t|t.parse::<$t>().unwrap()).collect::<Vec<_>>()}};($t:ty;;$n:expr)=>{(0..$n).map(|_|get!($t;;)).collect::<Vec<_>>()};}macro_rules!get{($($tt:tt)*)=>(crate::__cargo_equip_macro_def_kyopro_io_get!{$($tt)*})}} pub mod kyopro_uitls {pub use crate::__cargo_equip::macros::kyopro_uitls::*;#[macro_export]macro_rules!__cargo_equip_macro_def_kyopro_uitls_mat{($($e:expr),*)=>{Vec::from(vec![$($e),*])};($($e:expr,)*)=>{Vec::from(vec![$($e),*])};($e:expr;$d:expr)=>{Vec::from(vec![$e;$d])};($e:expr;$d:expr$(;$ds:expr)+)=>{Vec::from(vec![mat![$e$(;$ds)*];$d])};}macro_rules!mat{($($tt:tt)*)=>(crate::__cargo_equip_macro_def_kyopro_uitls_mat!{$($tt)*})}#[macro_export]macro_rules!__cargo_equip_macro_def_kyopro_uitls_echo{($($num:expr),*)=>{let mut tmp=vec![];$(tmp.push(format!("{}",$num));)*println!("{}",tmp.join(" "));};}macro_rules!echo{($($tt:tt)*)=>(crate::__cargo_equip_macro_def_kyopro_uitls_echo!{$($tt)*})}#[macro_export]macro_rules!__cargo_equip_macro_def_kyopro_uitls_mint{($num:expr)=>{Mint::new($num)};}macro_rules!mint{($($tt:tt)*)=>(crate::__cargo_equip_macro_def_kyopro_uitls_mint!{$($tt)*})}#[macro_export]macro_rules!__cargo_equip_macro_def_kyopro_uitls_YesNo{($num:expr)=>{if($num)as i64==0{println!("No");}else{println!("Yes");}};}macro_rules!YesNo{($($tt:tt)*)=>(crate::__cargo_equip_macro_def_kyopro_uitls_YesNo!{$($tt)*})}#[macro_export]macro_rules!__cargo_equip_macro_def_kyopro_uitls_Yes{()=>{println!("Yes");};}macro_rules!Yes{($($tt:tt)*)=>(crate::__cargo_equip_macro_def_kyopro_uitls_Yes!{$($tt)*})}#[macro_export]macro_rules!__cargo_equip_macro_def_kyopro_uitls_No{()=>{println!("No");};}macro_rules!No{($($tt:tt)*)=>(crate::__cargo_equip_macro_def_kyopro_uitls_No!{$($tt)*})}pub trait SetMinMax{fn setmin(&mut self,v:Self)->bool;fn setmax(&mut self,v:Self)->bool;}impl<T>SetMinMax for T where T:PartialOrd,{fn setmin(&mut self,v:T)->bool{*self>v&&{*self=v;true}}fn setmax(&mut self,v:T)->bool{*self<v&&{*self=v;true}}}pub fn print_vec<T>(v:&[T])where T:std::fmt::Display,{for i in 0..v.len(){print!("{}{}",v[i],if i+1==v.len(){""}else{" "});}println!();}} } pub(crate) mod macros { pub mod kyopro_io {pub use crate::__cargo_equip_macro_def_kyopro_io_get as get;} pub mod kyopro_uitls {pub use crate::{__cargo_equip_macro_def_kyopro_uitls_No as No,__cargo_equip_macro_def_kyopro_uitls_Yes as Yes,__cargo_equip_macro_def_kyopro_uitls_YesNo as YesNo,__cargo_equip_macro_def_kyopro_uitls_echo as echo,__cargo_equip_macro_def_kyopro_uitls_mat as mat,__cargo_equip_macro_def_kyopro_uitls_mint as mint};} } pub(crate) mod prelude {pub use crate::__cargo_equip::crates::*;} mod preludes { pub mod kyopro_io {} pub mod kyopro_uitls {} } }