This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { useState, useMemo } from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| const rowStyle = { | |
| display: 'flex' | |
| } | |
| const squareStyle = { | |
| 'width':'60px', | |
| 'height':'60px', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fs = require("fs/promises"); | |
| const path = require("path"); | |
| const _ = require("lodash"); | |
| /** | |
| * Write file | |
| * @param {string} filePath | |
| * @param {*} data | |
| */ | |
| async function writeFile(filePath, data) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # input ejemplo | |
| # 7 | |
| # -7 -8 5 2 + 1 8 -18 1 | |
| # 6 -4 8 -6 1 + 2 -8 1 | |
| # -8 1 4 -6 2 + 0 -36 0 -49 0 1 | |
| # -53 -72 -1 6 1 + 10 -25 1 | |
| # -29 -72 -60 -1 1 + -9 3 4 -8 1 | |
| # -69 4 -45 -56 3 2 + -33 -27 -28 -54 -31 -10 1 | |
| # -29 6 -87 -15 2 + -54 -2 -90 2 |