What's your number


Submit solution

Points: 10
Time limit: 2.0s
Memory limit: 64M

Authors:
Problem type
Allowed languages
Java 19, Java 8

在朝會時同學們按照座號排隊,由上至下、由左至右每n個人一排。
請找出座號k的同學在第幾排、第幾位。

限使用+, -, *, /, %, =,不得使用條件判斷

輸入

每排幾人n 座號k

輸出

第幾排、第幾位

sample input & output

輸入 輸出
DataSet1 5 41 9 1
DataSet2 8 8 1 8
DataSet3 7 11 2 4

Comments

There are no comments at the moment.