結果
| 問題 |
No.56 消費税
|
| コンテスト | |
| ユーザー |
ダンネック
|
| 提出日時 | 2020-05-23 01:28:45 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 369 bytes |
| コンパイル時間 | 3,758 ms |
| コンパイル使用メモリ | 74,628 KB |
| 実行使用メモリ | 41,828 KB |
| 最終ジャッジ日時 | 2024-10-06 04:21:46 |
| 合計ジャッジ時間 | 7,898 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 4 |
| other | WA * 23 |
ソースコード
import java.util.Arrays;
import java.util.Scanner;
public class tax{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int value = sc.nextInt();
int rate = sc.nextInt();
int tax = value * (rate + 100) / 100;
int total = value + tax;
System.out.println(Math.floor(total));
sc.close();
}
}
ダンネック