結果

問題 No.1415 100の倍数かつ正整数(1)
ユーザー phspls
提出日時 2022-11-08 11:29:32
言語 Rust
(1.83.0 + proconio)
結果
WA  
実行時間 -
コード長 285 bytes
コンパイル時間 12,948 ms
コンパイル使用メモリ 402,644 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-21 20:06:25
合計ジャッジ時間 14,246 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

fn main() {
    let mut n = String::new();
    std::io::stdin().read_line(&mut n).ok();
    let n = n.trim();
    if n.starts_with('-') {
        println!("0");
    } else {
        println!("{}", n.chars().take(n.len()-2).map(|c| c.to_string()).collect::<Vec<_>>().join(""));
    }
}
0