結果

問題 No.285 消費税2
ユーザー chiratomochiratomo
提出日時 2017-07-07 17:16:19
言語 Java21
(openjdk 21)
結果
AC  
実行時間 136 ms / 2,000 ms
コード長 285 bytes
コンパイル時間 2,207 ms
コンパイル使用メモリ 75,612 KB
実行使用メモリ 41,760 KB
最終ジャッジ日時 2024-04-16 01:15:32
合計ジャッジ時間 7,106 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
41,040 KB
testcase_01 AC 131 ms
41,148 KB
testcase_02 AC 129 ms
41,232 KB
testcase_03 AC 128 ms
40,948 KB
testcase_04 AC 130 ms
41,032 KB
testcase_05 AC 129 ms
41,244 KB
testcase_06 AC 126 ms
41,252 KB
testcase_07 AC 128 ms
41,244 KB
testcase_08 AC 130 ms
41,388 KB
testcase_09 AC 133 ms
41,044 KB
testcase_10 AC 134 ms
41,416 KB
testcase_11 AC 134 ms
41,196 KB
testcase_12 AC 135 ms
41,544 KB
testcase_13 AC 134 ms
41,276 KB
testcase_14 AC 135 ms
41,200 KB
testcase_15 AC 120 ms
40,484 KB
testcase_16 AC 117 ms
40,360 KB
testcase_17 AC 133 ms
41,320 KB
testcase_18 AC 133 ms
41,504 KB
testcase_19 AC 119 ms
40,028 KB
testcase_20 AC 132 ms
41,168 KB
testcase_21 AC 127 ms
41,388 KB
testcase_22 AC 131 ms
41,444 KB
testcase_23 AC 130 ms
41,760 KB
testcase_24 AC 133 ms
41,112 KB
testcase_25 AC 134 ms
41,332 KB
testcase_26 AC 135 ms
41,504 KB
testcase_27 AC 136 ms
41,440 KB
testcase_28 AC 136 ms
41,232 KB
testcase_29 AC 135 ms
41,196 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;


public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		long n = sc.nextLong();
		n *= 108;
		StringBuilder s = new StringBuilder(String.valueOf(n));
		s.insert(s.length()-2,".");
		System.out.println(s);
	}
}
0