結果

問題 No.56 消費税
ユーザー kuramukuramu
提出日時 2016-01-19 22:10:52
言語 Java21
(openjdk 21)
結果
AC  
実行時間 46 ms / 5,000 ms
コード長 540 bytes
コンパイル時間 2,036 ms
コンパイル使用メモリ 71,272 KB
実行使用メモリ 49,588 KB
最終ジャッジ日時 2023-09-25 03:21:23
合計ジャッジ時間 4,371 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
49,588 KB
testcase_01 AC 44 ms
49,372 KB
testcase_02 AC 44 ms
49,312 KB
testcase_03 AC 44 ms
49,408 KB
testcase_04 AC 43 ms
49,236 KB
testcase_05 AC 43 ms
49,240 KB
testcase_06 AC 44 ms
49,376 KB
testcase_07 AC 44 ms
49,480 KB
testcase_08 AC 44 ms
49,424 KB
testcase_09 AC 44 ms
49,408 KB
testcase_10 AC 43 ms
49,300 KB
testcase_11 AC 44 ms
49,416 KB
testcase_12 AC 44 ms
49,412 KB
testcase_13 AC 44 ms
49,344 KB
testcase_14 AC 45 ms
49,308 KB
testcase_15 AC 43 ms
49,280 KB
testcase_16 AC 44 ms
49,560 KB
testcase_17 AC 44 ms
49,424 KB
testcase_18 AC 44 ms
47,172 KB
testcase_19 AC 44 ms
49,300 KB
testcase_20 AC 44 ms
49,284 KB
testcase_21 AC 44 ms
49,244 KB
testcase_22 AC 44 ms
49,368 KB
testcase_23 AC 44 ms
49,256 KB
testcase_24 AC 44 ms
49,336 KB
testcase_25 AC 43 ms
49,276 KB
testcase_26 AC 46 ms
49,280 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) {
	      BufferedReader stdReader =new BufferedReader(new InputStreamReader(System.in));
	      
	      try {
	    	  String[] temps = stdReader.readLine().split(" ");
	    	  int money=Integer.parseInt(temps[0]);
	    	  int percent=Integer.parseInt(temps[1]);
	    	  System.out.println(money*(100+percent)/100);
	      } catch (IOException e) {
			e.printStackTrace();
	      }
	}
}
0