結果

問題 No.56 消費税
ユーザー core123core123
提出日時 2019-04-16 16:01:45
言語 Java21
(openjdk 21)
結果
AC  
実行時間 133 ms / 5,000 ms
コード長 696 bytes
コンパイル時間 2,420 ms
コンパイル使用メモリ 75,512 KB
実行使用メモリ 57,864 KB
最終ジャッジ日時 2023-10-22 07:07:11
合計ジャッジ時間 7,213 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 130 ms
57,516 KB
testcase_01 AC 131 ms
57,448 KB
testcase_02 AC 131 ms
57,684 KB
testcase_03 AC 131 ms
57,704 KB
testcase_04 AC 129 ms
57,412 KB
testcase_05 AC 129 ms
57,468 KB
testcase_06 AC 128 ms
57,664 KB
testcase_07 AC 130 ms
57,472 KB
testcase_08 AC 130 ms
57,712 KB
testcase_09 AC 130 ms
57,536 KB
testcase_10 AC 129 ms
57,504 KB
testcase_11 AC 130 ms
57,504 KB
testcase_12 AC 129 ms
57,476 KB
testcase_13 AC 131 ms
57,508 KB
testcase_14 AC 130 ms
57,388 KB
testcase_15 AC 128 ms
57,632 KB
testcase_16 AC 128 ms
57,864 KB
testcase_17 AC 130 ms
57,524 KB
testcase_18 AC 132 ms
55,424 KB
testcase_19 AC 131 ms
57,508 KB
testcase_20 AC 132 ms
57,496 KB
testcase_21 AC 131 ms
57,512 KB
testcase_22 AC 133 ms
57,588 KB
testcase_23 AC 129 ms
57,600 KB
testcase_24 AC 128 ms
57,696 KB
testcase_25 AC 128 ms
57,516 KB
testcase_26 AC 129 ms
55,852 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.util.stream.*;
public class Main{
	public static void main(String... args){
		Scanner sc=new Scanner(System.in);
		long d=sc.nextInt();
		int p=sc.nextInt();
		put(d*(100+p)/100);
	}
	
	public static void print(Object object){
        System.out.print(object);
    }
    public static void put(Object object) {
        System.out.println(object);
    }
    public static void put(){
        System.out.println();
    }
 
    public static void print(String format,Object... args){
        System.out.print(String.format(format,args));
    }
    public static void put(String format,Object... args) {
        System.out.println(String.format(format,args));
    }
}
0