結果

問題 No.169 何分かかるの!?
ユーザー t8m8⛄️t8m8⛄️
提出日時 2015-03-30 17:53:00
言語 Java21
(openjdk 21)
結果
AC  
実行時間 123 ms / 1,000 ms
コード長 778 bytes
コンパイル時間 4,311 ms
コンパイル使用メモリ 72,860 KB
実行使用メモリ 56,612 KB
最終ジャッジ日時 2023-09-17 00:28:44
合計ジャッジ時間 8,433 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
56,404 KB
testcase_01 AC 119 ms
56,420 KB
testcase_02 AC 116 ms
55,940 KB
testcase_03 AC 118 ms
53,864 KB
testcase_04 AC 117 ms
55,888 KB
testcase_05 AC 118 ms
55,964 KB
testcase_06 AC 117 ms
55,936 KB
testcase_07 AC 115 ms
56,100 KB
testcase_08 AC 117 ms
55,796 KB
testcase_09 AC 115 ms
56,612 KB
testcase_10 AC 116 ms
56,548 KB
testcase_11 AC 116 ms
56,104 KB
testcase_12 AC 119 ms
55,744 KB
testcase_13 AC 120 ms
55,776 KB
testcase_14 AC 121 ms
56,100 KB
testcase_15 AC 118 ms
56,000 KB
testcase_16 AC 120 ms
55,936 KB
testcase_17 AC 121 ms
55,496 KB
testcase_18 AC 118 ms
55,956 KB
testcase_19 AC 121 ms
55,760 KB
testcase_20 AC 119 ms
55,528 KB
testcase_21 AC 123 ms
56,204 KB
testcase_22 AC 121 ms
56,288 KB
testcase_23 AC 120 ms
55,712 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

//No.169 何分かかるの!?

import java.util.*;
import java.io.*;
import static java.util.Arrays.*;
import static java.lang.Math.*;

public class No169 {
    
    static final Scanner sc = new Scanner(System.in);
    static final PrintWriter out = new PrintWriter(System.out,false);

    static void solve() {
        int k = 100 - sc.nextInt();
        int s = sc.nextInt();
        double ans = (double)s/k*100;
        out.println((int)ans);
    }

    public static void main(String[] args) {
        long start = System.currentTimeMillis();

        solve();
        out.flush();

        long end = System.currentTimeMillis();
        //trace(end-start + "ms");
        sc.close();
    }

    static void trace(Object... o) { System.out.println(deepToString(o));}
}
0