実行時間制限: 2 sec / メモリ制限: 1024 MB
配点 : 点
問題文
日本において、アイス製品は次の 種類に大別されます。
- 乳固形分が パーセント以上、乳脂肪分が パーセント以上含まれるものを「アイスクリーム」とする。
- 上に当てはまらず、乳固形分が パーセント以上、乳脂肪分が パーセント以上含まれるものを「アイスミルク」とする。
- 上のいずれにも当てはまらず、乳固形分が パーセント以上含まれるものを「ラクトアイス」とする。
- 上のいずれにも当てはまらないものを「氷菓」とする。
ここで、乳固形分は無脂乳固形分と乳脂肪分の つから成ります。
AtCoder 名物の製品「スヌケアイス」には、無脂乳固形分は パーセント、乳脂肪分は パーセント含まれています。
スヌケアイスに上の分類を適用したとすると、 種類のどれに当てはまるでしょうか ?
答えは「出力」の項に従って整数で出力してください。
制約
- は整数
入力
入力は以下の形式で標準入力から与えられる。
出力
以下に定められる整数を出力せよ :
- スヌケアイスがアイスクリームに当てはまる場合 :
- スヌケアイスがアイスミルクに当てはまる場合 :
- スヌケアイスがラクトアイスに当てはまる場合 :
- スヌケアイスが氷菓に当てはまる場合 :
入力例 1 Copy
10 8
出力例 1 Copy
1
このスヌケアイスには、無脂乳固形分が パーセント、乳脂肪分が パーセント含まれているため、乳固形分は パーセント含まれています。
乳固形分が パーセント以上、乳脂肪分が パーセント以上含まれているため、アイスクリームに分類されます。従って が正しい出力です。
入力例 2 Copy
1 2
出力例 2 Copy
3
乳固形分がちょうど パーセント含まれているため、アイスクリームやアイスミルクには該当しませんが、ラクトアイスに該当するため を出力します。
入力例 3 Copy
0 0
出力例 3 Copy
4
氷菓に分類されます。
Score : points
Problem Statement
In Japan, there are four major categories of ice cream type products:
- an ice cream type product with at least percent milk solids and at least percent milk fat is called an ice cream;
- an ice cream type product with at least percent milk solids and at least percent milk fat that is not an ice cream is called an ice milk;
- an ice cream type product with at least percent milk solids that is not an ice cream or an ice milk is called a lacto ice;
- an ice cream type product that is not an ice cream, an ice milk, or a lacto ice is called a flavored ice.
Here, milk solids consist of milk fat and milk solids-not-fat.
AtCoder's famous product Snuke Ice contains percent milk solids-not-fat and percent milk fat.
Which of the categories above does Snuke Ice fall into?
Print your answer as an integer according to the Output section.
Constraints
- and are integers.
Input
Input is given from Standard Input in the following format:
Output
Print an integer as follows:
- if Snuke Ice is an ice cream, print ;
- if Snuke Ice is an ice milk, print ;
- if Snuke Ice is a lacto ice, print ;
- if Snuke Ice is a flavored ice, print .
Sample Input 1 Copy
10 8
Sample Output 1 Copy
1
This product contains percent milk solids-not-fat and percent milk fat, for a total of percent milk solids.
Since it contains not less than percent milk solids and not less than percent milk fat, it is an ice cream; the correct output is .
Sample Input 2 Copy
1 2
Sample Output 2 Copy
3
Since it contains exactly percent milk solids, it is not an ice cream or an ice milk but is a lacto ice; the correct output is .
Sample Input 3 Copy
0 0
Sample Output 3 Copy
4
It is a flavored ice.