結果

問題 No.2088 数当てゲーム
ユーザー viral8viral8
提出日時 2022-10-01 09:32:44
言語 Java21
(openjdk 21)
結果
AC  
実行時間 129 ms / 2,000 ms
コード長 304 bytes
コンパイル時間 4,010 ms
コンパイル使用メモリ 70,252 KB
実行使用メモリ 55,912 KB
最終ジャッジ日時 2023-08-25 02:10:01
合計ジャッジ時間 6,127 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
55,520 KB
testcase_01 AC 120 ms
55,644 KB
testcase_02 AC 126 ms
55,648 KB
testcase_03 AC 121 ms
55,760 KB
testcase_04 AC 123 ms
55,480 KB
testcase_05 AC 120 ms
55,692 KB
testcase_06 AC 120 ms
54,296 KB
testcase_07 AC 121 ms
55,656 KB
testcase_08 AC 126 ms
55,380 KB
testcase_09 AC 120 ms
55,316 KB
testcase_10 AC 122 ms
55,496 KB
testcase_11 AC 129 ms
55,532 KB
testcase_12 AC 126 ms
55,500 KB
testcase_13 AC 127 ms
55,484 KB
testcase_14 AC 126 ms
55,912 KB
testcase_15 AC 125 ms
55,656 KB
testcase_16 AC 123 ms
55,912 KB
testcase_17 AC 120 ms
55,588 KB
testcase_18 AC 122 ms
55,696 KB
testcase_19 AC 127 ms
55,500 KB
testcase_20 AC 127 ms
55,504 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        long A = sc.nextLong();
        long B = sc.nextLong();
        if(A==1)
            System.out.println(0);
        else
            System.out.println(B/(1-A));
    }
}
0