結果

問題 No.285 消費税2
ユーザー htensaihtensai
提出日時 2019-11-22 19:52:24
言語 Java21
(openjdk 21)
結果
AC  
実行時間 155 ms / 2,000 ms
コード長 312 bytes
コンパイル時間 2,344 ms
コンパイル使用メモリ 76,704 KB
実行使用メモリ 42,868 KB
最終ジャッジ日時 2024-04-19 10:21:08
合計ジャッジ時間 6,868 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 140 ms
42,384 KB
testcase_01 AC 144 ms
42,404 KB
testcase_02 AC 136 ms
42,292 KB
testcase_03 AC 144 ms
42,620 KB
testcase_04 AC 130 ms
42,316 KB
testcase_05 AC 129 ms
42,700 KB
testcase_06 AC 133 ms
42,540 KB
testcase_07 AC 123 ms
42,236 KB
testcase_08 AC 134 ms
42,468 KB
testcase_09 AC 133 ms
42,724 KB
testcase_10 AC 120 ms
42,552 KB
testcase_11 AC 127 ms
42,792 KB
testcase_12 AC 129 ms
42,868 KB
testcase_13 AC 126 ms
42,640 KB
testcase_14 AC 128 ms
42,608 KB
testcase_15 AC 147 ms
42,620 KB
testcase_16 AC 122 ms
42,520 KB
testcase_17 AC 137 ms
42,604 KB
testcase_18 AC 150 ms
42,364 KB
testcase_19 AC 143 ms
42,668 KB
testcase_20 AC 128 ms
42,560 KB
testcase_21 AC 141 ms
42,284 KB
testcase_22 AC 122 ms
42,620 KB
testcase_23 AC 131 ms
42,528 KB
testcase_24 AC 147 ms
42,616 KB
testcase_25 AC 128 ms
42,540 KB
testcase_26 AC 124 ms
42,628 KB
testcase_27 AC 155 ms
42,640 KB
testcase_28 AC 135 ms
42,320 KB
testcase_29 AC 137 ms
42,828 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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