結果

問題 No.285 消費税2
ユーザー uafr_csuafr_cs
提出日時 2015-10-11 23:34:12
言語 Java21
(openjdk 21)
結果
AC  
実行時間 164 ms / 2,000 ms
コード長 452 bytes
コンパイル時間 2,105 ms
コンパイル使用メモリ 74,676 KB
実行使用メモリ 58,388 KB
最終ジャッジ日時 2023-09-28 12:23:48
合計ジャッジ時間 8,349 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 164 ms
56,828 KB
testcase_01 AC 161 ms
56,664 KB
testcase_02 AC 158 ms
56,584 KB
testcase_03 AC 162 ms
56,644 KB
testcase_04 AC 156 ms
56,880 KB
testcase_05 AC 157 ms
56,800 KB
testcase_06 AC 156 ms
56,572 KB
testcase_07 AC 156 ms
56,784 KB
testcase_08 AC 159 ms
56,860 KB
testcase_09 AC 164 ms
56,436 KB
testcase_10 AC 159 ms
56,748 KB
testcase_11 AC 157 ms
56,720 KB
testcase_12 AC 159 ms
56,764 KB
testcase_13 AC 157 ms
56,416 KB
testcase_14 AC 160 ms
56,824 KB
testcase_15 AC 158 ms
56,732 KB
testcase_16 AC 158 ms
56,820 KB
testcase_17 AC 160 ms
56,924 KB
testcase_18 AC 161 ms
56,896 KB
testcase_19 AC 158 ms
54,896 KB
testcase_20 AC 155 ms
56,660 KB
testcase_21 AC 156 ms
56,424 KB
testcase_22 AC 156 ms
56,792 KB
testcase_23 AC 157 ms
58,388 KB
testcase_24 AC 159 ms
56,724 KB
testcase_25 AC 158 ms
56,588 KB
testcase_26 AC 157 ms
56,768 KB
testcase_27 AC 159 ms
56,924 KB
testcase_28 AC 159 ms
56,872 KB
testcase_29 AC 157 ms
56,712 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Arrays;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.Scanner;
import java.util.Set;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		final long D = sc.nextLong();
		final long D8 = D * 8;
		
		final long upper_ans = D + (D8 / 100);
		final long lower_ans = D8 % 100;
		
		System.out.println(upper_ans + "." + String.format("%02d", lower_ans));
	}

}
0