結果

問題 No.285 消費税2
ユーザー fal_rndfal_rnd
提出日時 2017-08-25 23:37:55
言語 Java21
(openjdk 21)
結果
AC  
実行時間 146 ms / 2,000 ms
コード長 530 bytes
コンパイル時間 2,676 ms
コンパイル使用メモリ 78,980 KB
実行使用メモリ 42,324 KB
最終ジャッジ日時 2024-04-23 15:47:45
合計ジャッジ時間 7,656 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 143 ms
41,940 KB
testcase_01 AC 143 ms
41,876 KB
testcase_02 AC 145 ms
41,888 KB
testcase_03 AC 144 ms
42,048 KB
testcase_04 AC 143 ms
41,940 KB
testcase_05 AC 143 ms
42,324 KB
testcase_06 AC 145 ms
41,832 KB
testcase_07 AC 143 ms
42,064 KB
testcase_08 AC 144 ms
41,728 KB
testcase_09 AC 146 ms
41,748 KB
testcase_10 AC 145 ms
41,572 KB
testcase_11 AC 145 ms
41,992 KB
testcase_12 AC 142 ms
41,792 KB
testcase_13 AC 141 ms
41,780 KB
testcase_14 AC 128 ms
41,156 KB
testcase_15 AC 129 ms
41,308 KB
testcase_16 AC 144 ms
41,712 KB
testcase_17 AC 141 ms
42,136 KB
testcase_18 AC 137 ms
41,688 KB
testcase_19 AC 129 ms
41,228 KB
testcase_20 AC 125 ms
40,972 KB
testcase_21 AC 142 ms
41,808 KB
testcase_22 AC 144 ms
41,788 KB
testcase_23 AC 128 ms
41,320 KB
testcase_24 AC 143 ms
41,636 KB
testcase_25 AC 126 ms
41,096 KB
testcase_26 AC 128 ms
41,032 KB
testcase_27 AC 142 ms
41,496 KB
testcase_28 AC 131 ms
40,992 KB
testcase_29 AC 130 ms
40,980 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.math.BigDecimal;
import java.util.Scanner;
import java.util.stream.IntStream;

public class Main{
	static IntStream REPS(int v){return IntStream.range(0,v);}
	static IntStream REPS(int l,int r){return IntStream.rangeClosed(l,r);}
	static IntStream INS(int n) {return REPS(n).map(i->getInt());}
	static Scanner s=new Scanner(System.in);
	static int getInt(){return Integer.parseInt(s.next());}

	public static void main(String[]$){
		System.out.printf("%20f",BigDecimal.valueOf(1.08).multiply(s.nextBigDecimal()));
	}
}
0