refactor: use mathmatical method instead of number <=> string conversion
This commit is contained in:
parent
9533c09da4
commit
3fef0590dd
3 changed files with 11 additions and 4 deletions
|
|
@ -94,6 +94,10 @@ User-Agent에 따라 요청을 거부하는 경우가 있으므로, User-Agent
|
|||
|
||||
$$\lfloor \log_{10}(\text{{amount of teachers}}) \rfloor + 1$$
|
||||
|
||||
2. 교시 코드에서 마지막 `teachersLen + 1`자리를 제외하면 교사 코드를 얻을 수 있고, 응답의 `자료{teacherCode}`에서 index `교사 코드`의 값이 교사 이름입니다.
|
||||
2. 교사 코드는 다음과 같고, 응답의 `자료{teacherCode}`에서 index `교사 코드`의 값이 교사 이름입니다.
|
||||
|
||||
3. 교시 코드의 마지막 `teachersLen`자리는 과목 코드이고, 응답의 `자료{subjectCode}`에서 index `과목 코드`의 값이 과목 이름입니다.
|
||||
$$ \text{{교시 코드}} \mod 10^{\text{{teachersLen}}} $$
|
||||
|
||||
3. 과목 코드는 다음과 같고, 응답의 `자료{subjectCode}`에서 index `과목 코드`의 값이 과목 이름입니다.
|
||||
|
||||
$$ \left\lfloor \frac{\text{{교시 코드}}}{10^{\text{{teachersLen}} + 1}} \right\rfloor $$
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue