結果

問題 No.285 消費税2
ユーザー kuramu
提出日時 2016-02-07 00:31:15
言語 Java
(openjdk 23)
結果
AC  
実行時間 58 ms / 2,000 ms
コード長 569 bytes
コンパイル時間 2,131 ms
コンパイル使用メモリ 73,684 KB
実行使用メモリ 37,552 KB
最終ジャッジ日時 2024-09-21 20:56:08
合計ジャッジ時間 4,844 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigDecimal;
public class Main {

	 public static void main(String[] args) {
	      BufferedReader stdReader =new BufferedReader(new InputStreamReader(System.in));
	      try {
	    	  BigDecimal num = BigDecimal.valueOf(Long.parseLong(stdReader.readLine()));
	    	  BigDecimal ans = num.multiply(BigDecimal.valueOf(108)).divide(BigDecimal.valueOf(100));
	    	  System.out.println(ans);
	      } catch (IOException e) {
			e.printStackTrace();
	      }
	}
}
0