結果
問題 |
No.56 消費税
|
ユーザー |
![]() |
提出日時 | 2019-08-29 16:50:22 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 577 bytes |
コンパイル時間 | 4,107 ms |
コンパイル使用メモリ | 74,648 KB |
実行使用メモリ | 54,144 KB |
最終ジャッジ日時 | 2024-11-17 16:56:16 |
合計ジャッジ時間 | 7,112 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 WA * 1 |
other | AC * 13 WA * 10 |
ソースコード
import java.io.Console; import java.util.*; public class No59 { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int price = sc.nextInt(); double tax = sc.nextInt(); /* ArrayList<Integer> num = new ArrayList<Integer>(); Scanner sc = new Scanner(System.in); for(int i=0;i<2;i++) { num.add(sc.nextInt()) ; } */ calculate(price,tax); } public static void calculate(int a,double b) { // System.out.println(a); // System.out.println(b); System.out.println((int)(a*(1+b*0.01))); } }