MISC: Clarify input and output of Square Root coding contract (#1839)

This commit is contained in:
catloversg 2024-12-12 18:13:18 +07:00 committed by GitHub
parent 74ede7d947
commit d9dba2a442
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1865,7 +1865,8 @@ export const codingContractTypesMetadata: CodingContractType<any>[] = [
name: "Square Root",
difficulty: 5,
desc(data: bigint): string {
return `You are given a ~200 digit BigInt. Find the square root of this number, to the nearest integer.
return `You are given a ~200 digit BigInt. Find the square root of this number, to the nearest integer.\n
The input is a BigInt value. The answer must be the string representing the solution's BigInt value. The trailing "n" is not part of the string.\n
Hint: If you are having trouble, you might consult https://en.wikipedia.org/wiki/Methods_of_computing_square_roots
Input number: