結果

問題 No.169 何分かかるの!?
ユーザー shora_kujira16shora_kujira16
提出日時 2015-03-22 23:25:39
言語 Java19
(openjdk 21)
結果
AC  
実行時間 45 ms / 1,000 ms
コード長 1,149 bytes
コンパイル時間 3,720 ms
コンパイル使用メモリ 71,988 KB
実行使用メモリ 49,960 KB
最終ジャッジ日時 2023-09-11 09:30:40
合計ジャッジ時間 5,886 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
49,316 KB
testcase_01 AC 45 ms
49,436 KB
testcase_02 AC 45 ms
49,832 KB
testcase_03 AC 44 ms
49,716 KB
testcase_04 AC 44 ms
49,480 KB
testcase_05 AC 44 ms
49,604 KB
testcase_06 AC 43 ms
49,624 KB
testcase_07 AC 44 ms
49,316 KB
testcase_08 AC 44 ms
49,440 KB
testcase_09 AC 44 ms
49,316 KB
testcase_10 AC 44 ms
49,412 KB
testcase_11 AC 44 ms
49,416 KB
testcase_12 AC 44 ms
49,960 KB
testcase_13 AC 43 ms
49,808 KB
testcase_14 AC 43 ms
49,472 KB
testcase_15 AC 43 ms
47,924 KB
testcase_16 AC 44 ms
49,280 KB
testcase_17 AC 43 ms
49,320 KB
testcase_18 AC 43 ms
49,820 KB
testcase_19 AC 44 ms
49,312 KB
testcase_20 AC 44 ms
49,276 KB
testcase_21 AC 43 ms
49,496 KB
testcase_22 AC 43 ms
49,704 KB
testcase_23 AC 42 ms
47,292 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;

public class Main {
    private void run() {
        int K = readInt();
        int S = readInt();
        double a = 1.0 * S / (100 - K) * 100;
        sysout.println((int) Math.floor(a));
    }

    public static void main(String[] args) {
        new Main().run();
    }

    // flush automatically iff you call `println` or `printf` or `format`.
    PrintWriter sysout = new PrintWriter(System.out, true);

    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    StringTokenizer buffer = null;

    String readLine() {
        buffer = null;
        try {
            return in.readLine();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }

    String read() {
        if (buffer == null || !buffer.hasMoreTokens()) {
            buffer = new StringTokenizer(readLine());
        }
        return buffer.nextToken();
    }

    int readInt() {
        return Integer.parseInt(read());
    }

    long readLong() {
        return Long.parseLong(read());
    }

    double readDouble() {
        return Double.parseDouble(read());
    }
}
0