結果

問題 No.2088 数当てゲーム
ユーザー phspls
提出日時 2022-10-01 11:01:22
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 357 bytes
コンパイル時間 11,243 ms
コンパイル使用メモリ 384,240 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-23 15:37:58
合計ジャッジ時間 12,429 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

fn main() {
    let mut a = String::new();
    std::io::stdin().read_line(&mut a).ok();
    let a: isize = a.trim().parse().unwrap();
    let mut b = String::new();
    std::io::stdin().read_line(&mut b).ok();
    let b: isize = b.trim().parse().unwrap();

    if a == 1 {
        println!("{}", b);
    } else {
        println!("{}", -b / (a-1));
    }
}
0