結果

問題 No.1415 100の倍数かつ正整数(1)
ユーザー ⁣
提出日時 2024-04-30 15:44:46
言語 Rust
(1.77.0)
結果
WA  
実行時間 -
コード長 239 bytes
コンパイル時間 12,528 ms
コンパイル使用メモリ 404,032 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-04-30 15:45:00
合計ジャッジ時間 11,493 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 0 ms
6,816 KB
testcase_02 WA -
testcase_03 AC 1 ms
6,940 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 1 ms
6,940 KB
testcase_10 AC 0 ms
6,940 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 1 ms
6,940 KB
testcase_14 WA -
testcase_15 AC 1 ms
6,940 KB
testcase_16 WA -
testcase_17 AC 1 ms
6,940 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 1 ms
6,940 KB
testcase_23 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

fn main() {
    let mut s = String::new();
    std::io::stdin().read_line(&mut s).ok();

    let m = s.matches('-').count() == 0;
    let s = s.chars().take(s.len() - 2).collect::<String>();
    println!("{}", if m { &s } else { "0" });
}
0