結果

問題 No.169 何分かかるの!?
コンテスト
ユーザー kitamoto0407
提出日時 2025-12-02 22:09:07
言語 Java
(openjdk 25.0.2)
コンパイル:
javac -encoding UTF8 _filename_
実行:
java -ea -Xmx700m -Xss256M -DONLINE_JUDGE=true _class_
結果
AC  
実行時間 31 ms / 1,000 ms
+ 226µs
コード長 813 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,452 ms
コンパイル使用メモリ 83,280 KB
実行使用メモリ 40,500 KB
最終ジャッジ日時 2026-07-17 06:13:54
合計ジャッジ時間 3,635 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import java.io.*;

// 処理
class Process {
    private int K;
    private int S;

    Process(int K, int S) {
        this.K = K;
        this.S = S;
    }

    int getResult() {
        return (int)((100.0 * S) / (100 - K));
    }
}

public class Main {
    public static void main(String[] args) throws IOException {
        var bufferedReader = new BufferedReader(new InputStreamReader(System.in));
        var printWriter    = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));

        // 入力
        int K = Integer.parseInt(bufferedReader.readLine().trim());

        int S = Integer.parseInt(bufferedReader.readLine().trim());

        // 出力
        printWriter.println((new Process(K, S)).getResult());

        bufferedReader.close();
        printWriter.close();
    }
}
0