Problem Solving With JavaScript

Правка en3, от nuralam024, 2020-10-28 22:33:59

Here is a short post on how to solve problems with JavaScript in online judge.

First go to this link. Link: (https://ftp.mozilla.org/pub/firefox/releases/64.0/jsshell/) Download according to your operating system. Unzip the downloaded file and put it inside a folder. The js file in which I write the code, the js file must be inside my same folder.

When unzipped, clicking js.exe from inside the folder will open a command prompt. At this command prompt we will take user input. I must load and bring the file before taking user input. Here is the name of my JS file ab.js. Example: load('ab.js') This way I have to load the file every time I take input.

Problem Link: (https://mirror.codeforces.com/contest/1144/problem/C) JavaScript Solution: (https://mirror.codeforces.com/contest/1144/submission/86218601) Node.js Solution: (https://mirror.codeforces.com/contest/1144/submission/86221729)

Thanks to all.

Happy Coding.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en4 Английский nuralam024 2020-10-28 22:34:33 4 Tiny change: '*ab.js**. **Example: load('ab.j' -> '*ab.js**. Example: **load('ab.j'
en3 Английский nuralam024 2020-10-28 22:33:59 32
en2 Английский nuralam024 2020-10-28 22:32:22 12
en1 Английский nuralam024 2020-10-28 22:31:05 935 Initial revision (published)