結果
問題 | No.804 野菜が苦手 |
ユーザー | kazapyon27 |
提出日時 | 2019-03-30 00:32:31 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 628 bytes |
コンパイル時間 | 3,287 ms |
コンパイル使用メモリ | 72,844 KB |
実行使用メモリ | 37,184 KB |
最終ジャッジ日時 | 2024-04-24 16:53:41 |
合計ジャッジ時間 | 5,200 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 56 ms
36,744 KB |
testcase_01 | WA | - |
testcase_02 | AC | 54 ms
37,020 KB |
testcase_03 | AC | 55 ms
37,184 KB |
testcase_04 | AC | 55 ms
36,980 KB |
testcase_05 | AC | 55 ms
36,716 KB |
testcase_06 | WA | - |
testcase_07 | AC | 54 ms
37,064 KB |
testcase_08 | AC | 51 ms
36,664 KB |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | AC | 55 ms
37,040 KB |
testcase_15 | AC | 53 ms
37,028 KB |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | AC | 52 ms
36,664 KB |
testcase_19 | AC | 52 ms
37,064 KB |
ソースコード
/*No.804 野菜が苦手*/ import java.io.*; public class No804{ public static void main(String[] args) { try(BufferedReader input =new BufferedReader(new InputStreamReader(System.in))){ String[]s_input=input.readLine().split(" "); byte ordered_vegetables=Byte.parseByte(s_input[0]); byte ordered_meat=Byte.parseByte(s_input[1]); byte multiple=Byte.parseByte(s_input[2]); byte capacity=Byte.parseByte(s_input[3]); while(ordered_vegetables+ordered_vegetables*multiple>capacity){ ordered_vegetables--; } System.out.println(ordered_vegetables); }catch(Exception e){ e.printStackTrace(); } } }