結果
| 問題 |
No.56 消費税
|
| コンテスト | |
| ユーザー |
hj5ln8kbDM8t2fF
|
| 提出日時 | 2019-08-29 16:49:10 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 573 bytes |
| コンパイル時間 | 3,054 ms |
| コンパイル使用メモリ | 77,056 KB |
| 実行使用メモリ | 55,752 KB |
| 最終ジャッジ日時 | 2024-11-17 16:56:03 |
| 合計ジャッジ時間 | 7,266 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 4 |
| other | WA * 23 |
ソースコード
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)));
}
}
hj5ln8kbDM8t2fF