結果

問題 No.1415 100の倍数かつ正整数(1)
コンテスト
ユーザー phspls
提出日時 2022-11-08 11:29:32
言語 Rust
(1.94.0 + proconio + num + itertools)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
WA  
実行時間 -
コード長 285 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 11,531 ms
コンパイル使用メモリ 191,480 KB
実行使用メモリ 7,976 KB
最終ジャッジ日時 2026-04-03 05:49:50
合計ジャッジ時間 12,307 ms
ジャッジサーバーID
(参考情報)
judge4_1 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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