nuralam024's blog

By nuralam024, history, 2 years ago, In English

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://codeforces.com/contest/1144/problem/C) JavaScript Solution: (https://codeforces.com/contest/1144/submission/86218601) Node.js Solution: (https://codeforces.com/contest/1144/submission/86221729)

Thanks to all.

Happy Coding.

 
 
 
 
  • Vote: I like it
  • +13
  • Vote: I do not like it

»
2 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by nuralam024 (previous revision, new revision, compare).

»
2 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by nuralam024 (previous revision, new revision, compare).

»
2 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by nuralam024 (previous revision, new revision, compare).

»
2 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Thank you so much. Really helpful

»
7 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

71A way too long problem let s=readLine(prompt); let len=s.length; if(len>10){ print(s[0]+(len-2)+s[len-1]); } else{ print(s); }

→Judgement Protocol Test: #1, time: 0 ms., memory: 0 KB, exit code: 0, checker exit code: 0, verdict: COMPILATION_ERROR Input 4 word localization internationalization pneumonoultramicroscopicsilicovolcanoconiosis Checker Log Can't compile file:

it swos error