結果

問題 No.285 消費税2
ユーザー tsunabittsunabit
提出日時 2019-05-26 18:12:40
言語 Java19
(openjdk 21)
結果
AC  
実行時間 141 ms / 2,000 ms
コード長 469 bytes
コンパイル時間 3,582 ms
コンパイル使用メモリ 77,796 KB
実行使用メモリ 57,764 KB
最終ジャッジ日時 2023-10-17 18:00:15
合計ジャッジ時間 8,597 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 139 ms
57,584 KB
testcase_01 AC 138 ms
57,568 KB
testcase_02 AC 134 ms
57,580 KB
testcase_03 AC 137 ms
57,424 KB
testcase_04 AC 141 ms
57,428 KB
testcase_05 AC 137 ms
57,456 KB
testcase_06 AC 134 ms
57,512 KB
testcase_07 AC 132 ms
57,672 KB
testcase_08 AC 136 ms
57,460 KB
testcase_09 AC 135 ms
57,644 KB
testcase_10 AC 136 ms
57,448 KB
testcase_11 AC 135 ms
57,576 KB
testcase_12 AC 134 ms
57,764 KB
testcase_13 AC 134 ms
57,544 KB
testcase_14 AC 133 ms
57,516 KB
testcase_15 AC 136 ms
57,396 KB
testcase_16 AC 136 ms
57,624 KB
testcase_17 AC 138 ms
57,580 KB
testcase_18 AC 136 ms
57,536 KB
testcase_19 AC 135 ms
55,568 KB
testcase_20 AC 138 ms
57,456 KB
testcase_21 AC 136 ms
57,612 KB
testcase_22 AC 137 ms
57,388 KB
testcase_23 AC 137 ms
57,616 KB
testcase_24 AC 136 ms
57,388 KB
testcase_25 AC 134 ms
57,508 KB
testcase_26 AC 134 ms
57,616 KB
testcase_27 AC 134 ms
57,520 KB
testcase_28 AC 132 ms
57,480 KB
testcase_29 AC 138 ms
57,548 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

public class No285 {
    public static void main(String[] args) {
        // 標準入力から読み込む際に、Scannerオブジェクトを使う。
        Scanner s = new Scanner(System.in);
        long d = s.nextLong();
        long x = d * 108;
        long y = x / 100;
        long z = x % 100;
        System.out.printf("%d.%02d", y, z);
    }
}
0