結果

問題 No.169 何分かかるの!?
ユーザー matsuyoshi30matsuyoshi30
提出日時 2017-02-07 00:40:00
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 418 bytes
コンパイル時間 1,679 ms
コンパイル使用メモリ 71,984 KB
実行使用メモリ 57,800 KB
最終ジャッジ日時 2023-08-25 22:02:55
合計ジャッジ時間 5,411 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 99 ms
55,620 KB
testcase_01 AC 96 ms
55,612 KB
testcase_02 AC 99 ms
55,576 KB
testcase_03 AC 99 ms
55,836 KB
testcase_04 AC 103 ms
55,960 KB
testcase_05 AC 107 ms
55,920 KB
testcase_06 AC 98 ms
55,608 KB
testcase_07 AC 99 ms
55,932 KB
testcase_08 AC 105 ms
55,736 KB
testcase_09 AC 97 ms
55,948 KB
testcase_10 AC 101 ms
55,696 KB
testcase_11 AC 105 ms
55,832 KB
testcase_12 AC 110 ms
55,688 KB
testcase_13 AC 104 ms
55,656 KB
testcase_14 AC 100 ms
55,384 KB
testcase_15 AC 103 ms
57,800 KB
testcase_16 AC 107 ms
55,696 KB
testcase_17 AC 103 ms
55,644 KB
testcase_18 AC 102 ms
55,788 KB
testcase_19 AC 102 ms
55,564 KB
testcase_20 AC 106 ms
55,460 KB
testcase_21 AC 109 ms
55,920 KB
testcase_22 WA -
testcase_23 AC 105 ms
55,500 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;

class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int k = in.nextInt();
        int s = in.nextInt();

        int nokori = 100 - k;

        int ans = (int)((float)s / (100-k) * 100);

        System.out.println(ans);

        in.close();
    }
}
0