結果

問題 No.3773 mod A > mod B
コンテスト
ユーザー あるふぁ
提出日時 2026-10-26 06:47:57
言語 Rust
(1.99.1 + proconio + num + itertools + ACL)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
AC  
実行時間 1 ms / 2,000 ms
+ 41µs
コード長 236 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 592 ms
コンパイル使用メモリ 175,540 KB
実行使用メモリ 9,900 KB
最終ジャッジ日時 2026-10-26 06:48:01
合計ジャッジ時間 2,912 ms
ジャッジサーバーID
(参考情報)
judge5_0 / judge4_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

use proconio::input;

fn main(){
    input!{
        n: usize,
        a: usize,
        b: usize,
    }

    let mut cnt = 0;
    for i in 1..=n{
        if i%a > i%b{
            cnt += 1;
        }
    }


    println!("{}", cnt);
}
0