結果
問題 | No.56 消費税 |
ユーザー | scache |
提出日時 | 2014-11-13 07:16:33 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 154 ms / 5,000 ms |
コード長 | 362 bytes |
コンパイル時間 | 3,981 ms |
コンパイル使用メモリ | 77,792 KB |
実行使用メモリ | 54,552 KB |
最終ジャッジ日時 | 2024-07-18 01:45:36 |
合計ジャッジ時間 | 9,006 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 23 |
ソースコード
import java.util.Scanner; public class Main56 { public static void main(String[] args) { Main56 p = new Main56(); } public Main56() { Scanner sc = new Scanner(System.in); int d =sc.nextInt(); int p =sc.nextInt(); solve(d, p); } public void solve(int d, int p) { int res = d*p/100 + d; System.out.println(res); } }