結果

問題 No.285 消費税2
ユーザー takeya_okinotakeya_okino
提出日時 2017-06-25 14:18:11
言語 Java21
(openjdk 21)
結果
AC  
実行時間 159 ms / 2,000 ms
コード長 320 bytes
コンパイル時間 2,199 ms
コンパイル使用メモリ 76,364 KB
実行使用メモリ 56,936 KB
最終ジャッジ日時 2024-04-15 01:22:59
合計ジャッジ時間 7,675 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 150 ms
55,212 KB
testcase_01 AC 142 ms
54,576 KB
testcase_02 AC 154 ms
54,984 KB
testcase_03 AC 150 ms
54,732 KB
testcase_04 AC 150 ms
55,012 KB
testcase_05 AC 149 ms
55,032 KB
testcase_06 AC 148 ms
55,180 KB
testcase_07 AC 151 ms
55,120 KB
testcase_08 AC 141 ms
54,708 KB
testcase_09 AC 151 ms
55,132 KB
testcase_10 AC 138 ms
54,628 KB
testcase_11 AC 150 ms
55,236 KB
testcase_12 AC 149 ms
55,128 KB
testcase_13 AC 152 ms
54,936 KB
testcase_14 AC 152 ms
54,932 KB
testcase_15 AC 152 ms
54,888 KB
testcase_16 AC 154 ms
55,024 KB
testcase_17 AC 159 ms
54,944 KB
testcase_18 AC 158 ms
54,896 KB
testcase_19 AC 153 ms
55,108 KB
testcase_20 AC 155 ms
54,920 KB
testcase_21 AC 155 ms
54,916 KB
testcase_22 AC 155 ms
54,916 KB
testcase_23 AC 151 ms
55,028 KB
testcase_24 AC 149 ms
54,880 KB
testcase_25 AC 151 ms
56,936 KB
testcase_26 AC 153 ms
54,972 KB
testcase_27 AC 154 ms
55,048 KB
testcase_28 AC 152 ms
55,120 KB
testcase_29 AC 140 ms
54,724 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    long D = sc.nextLong();
    D *= 108;
    String d = String.valueOf(D);
    String ans = d.substring(0, d.length() - 2) + "." + d.substring(d.length() - 2);
    System.out.println(ans);
  }
}
0