結果

問題 No.1223 I hate Golf
ユーザー qryxipqryxip
提出日時 2020-10-19 03:25:24
言語 Rust
(1.77.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 4,240 bytes
コンパイル時間 2,903 ms
コンパイル使用メモリ 150,676 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-28 12:30:13
合計ジャッジ時間 3,503 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 1 ms
4,380 KB
testcase_03 AC 1 ms
4,376 KB
testcase_04 AC 1 ms
4,376 KB
testcase_05 AC 1 ms
4,376 KB
testcase_06 AC 1 ms
4,376 KB
testcase_07 AC 1 ms
4,376 KB
testcase_08 AC 1 ms
4,376 KB
testcase_09 AC 1 ms
4,376 KB
testcase_10 AC 1 ms
4,380 KB
testcase_11 AC 1 ms
4,376 KB
testcase_12 AC 1 ms
4,380 KB
testcase_13 AC 1 ms
4,376 KB
testcase_14 AC 1 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

//! # Bundled libraries
//!
//! ## `my_library` (private)
//!
//! ### Modules
//!
//! - `::__my::input`

/*#![cfg_attr(cargo_equip, cargo_equip::equip)]*/

/*use ::__my::input;*/

fn main() {
    input! {
        n: i64,
        k: i64,
        t: i64,
    }

    let ans = n.abs() <= k * t;
    println!("{}", if ans { "Yes" } else { "No" });
}

// The following code was expanded by `cargo-equip`.

use crate::__my::input;

#[allow(clippy::deprecated_cfg_attr)]#[cfg_attr(rustfmt,rustfmt::skip)]#[allow(dead_code)]mod __my{pub mod input{use std::{cell::RefCell,fmt::Debug,io::{self,BufRead,Read},rc::Rc,str::{FromStr,SplitWhitespace},}; #[cfg_attr(cargo_equip,cargo_equip::translate_dollar_crates)]#[macro_export]macro_rules!input{(from$scanner:ident; $($tt:tt)*)=>{$crate::input_inner!(@scanner($scanner), @tts($($tt)*))};($($tt:tt)*)=>{let __scanner= $crate::input::DEFAULT_SCANNER.with(|__scanner|__scanner.clone());let mut __scanner_ref=__scanner.borrow_mut();if let$crate::input::Scanner::Uninited= *__scanner_ref{*__scanner_ref= $crate::input::Scanner::stdin_auto().unwrap();}$crate::input_inner!(@scanner(__scanner_ref), @tts($($tt)*)); ::std::mem::drop(__scanner_ref); ::std::mem::drop(__scanner);};}#[macro_export]macro_rules!input_inner{(@scanner($scanner:ident), @tts())=>{};(@scanner($scanner:ident), @tts(mut$single_tt_pat:tt: $readable:tt))=>{let mut$single_tt_pat= $crate::read!(from$scanner{$readable});};(@scanner($scanner:ident), @tts($single_tt_pat:tt: $readable:tt))=>{let$single_tt_pat= $crate::read!(from$scanner{$readable});};(@scanner($scanner:ident), @tts(mut$single_tt_pat:tt: $readable:tt, $($rest:tt)*))=>{$crate::input_inner!(@scanner($scanner), @tts(mut$single_tt_pat: $readable)); $crate::input_inner!(@scanner($scanner), @tts($($rest)*));};(@scanner($scanner:ident), @tts($single_tt_pat:tt: $readable:tt, $($rest:tt)*))=>{$crate::input_inner!(@scanner($scanner), @tts($single_tt_pat: $readable)); $crate::input_inner!(@scanner($scanner), @tts($($rest)*));};}#[cfg_attr(cargo_equip,cargo_equip::translate_dollar_crates)]#[macro_export]macro_rules!read{(from$scanner:ident{[$tt:tt]})=>{$crate::read!(from$scanner{[$tt; $crate::read!(from$scanner{usize})]})};(from$scanner:ident{[$tt:tt; $n:expr]})=>{(0..$n).map(|_| $crate::read!(from$scanner{$tt})).collect::<Vec<_>>()};(from$scanner:ident{($($tt:tt),+)})=>{($($crate::read!(from$scanner{$tt})),*)};(from$scanner:ident{$ty:ty})=>{<$ty as$crate::input::Readable>::read_from_scanner(&mut$scanner)};}#[macro_export]macro_rules!readable{($name:ident; |$scanner:ident|{$($body:tt)*})=>{$crate::readable!($name; |$scanner| ->(){$($body)*});};($name:ident; |$scanner:ident| $expr:expr)=>{$crate::readable!($name; |$scanner| ->(){$expr});};($name:ident; |$scanner:ident| -> $output:ty{$($body:tt)*})=>{enum$name{}impl$crate::input::Readable for$name{type Output= $output;fn read_from_scanner(mut$scanner: &mut$crate::input::Scanner)-> $output{$($body)*}}};}pub enum Scanner{Uninited,Once{words:SplitWhitespace< 'static> ,},Lines{rdr:Box<dyn BufRead> ,words:SplitWhitespace< 'static> ,},}impl Scanner{pub fn stdin_auto()->io::Result<Self>{if cfg!(debug_assertions){Ok(Self::lines(Box::leak(Box::new(io::stdin())).lock()))}else{Self::once(io::stdin())}}pub fn once<R:Read>(mut rdr:R)->io::Result<Self>{let mut buf=String::with_capacity(1024);rdr.read_to_string(&mut buf)? ;let words=Box::leak(buf.into_boxed_str()).split_whitespace();Ok(Self::Once{words})}pub fn lines<R:BufRead+ 'static>(rdr:R)->Self{Self::Lines{rdr:Box::new(rdr),words:"".split_whitespace(),}}pub fn parse_next_unwrap<T:FromStr>(&mut self)->T where T::Err:Debug,{match self{Self::Uninited=>None,Self::Once{words}=>words.next(),Self::Lines{rdr,words}=>words.next().or_else(| |{let mut line="".to_owned();rdr.read_line(&mut line).unwrap(); *words=Box::leak(line.into_boxed_str()).split_whitespace();words.next()}),}.expect("reached EOF").parse().unwrap()}}thread_local!{pub static DEFAULT_SCANNER:Rc<RefCell<Scanner>> =Rc::new(RefCell::new(Scanner::Uninited));}pub trait Readable{type Output;fn read_from_scanner(scanner: &mut Scanner)->Self::Output;}impl<T:FromStr>Readable for T where T::Err:Debug,{type Output=Self;fn read_from_scanner(scanner: &mut Scanner)->Self{scanner.parse_next_unwrap()}}}}
0