/
Time Limit: 2 sec / Memory Limit: 1024 MiB
配点 : 100 点
問題文
正整数 N,M が与えられます。
N 行出力してください。
i 行目 (1\leq i\leq N) には、i\leq M のとき OK を、
そうでないとき、Too Many Requests を出力してください。
制約
- 1 \leq N \leq 10
- 1 \leq M \leq 10
- N,M は整数
入力
入力は以下の形式で標準入力から与えられる。
N M
出力
問題文の指示に従って、N 行出力せよ。
入力例 1
5 3
出力例 1
OK OK OK Too Many Requests Too Many Requests
N=5, M=3 のため、
1,2,3 行目には OK を、
4,5 行目には Too Many Requests を出力します。
入力例 2
3 5
出力例 2
OK OK OK
N=3, M=5 のため、
1,2,3 行目に OK を出力します。
Score : 100 points
Problem Statement
You are given positive integers N and M.
Print N lines.
The i-th line (1\leq i\leq N) should contain OK if i\leq M,
and Too Many Requests otherwise.
Constraints
- 1 \leq N \leq 10
- 1 \leq M \leq 10
- N and M are integers.
Input
The input is given from Standard Input in the following format:
N M
Output
Print N lines according to the instructions in the problem statement.
Sample Input 1
5 3
Sample Output 1
OK OK OK Too Many Requests Too Many Requests
Since N=5 and M=3,
print OK on the 1st, 2nd, and 3rd lines,
and print Too Many Requests on the 4th and 5th lines.
Sample Input 2
3 5
Sample Output 2
OK OK OK
Since N=3 and M=5,
print OK on the 1st, 2nd, and 3rd lines.