Skip to content

Instantly share code, notes, and snippets.

@sifue
Created May 29, 2017 13:15
Show Gist options
  • Save sifue/49e5311b501fb3ffd2751f711958931b to your computer and use it in GitHub Desktop.
Save sifue/49e5311b501fb3ffd2751f711958931b to your computer and use it in GitHub Desktop.
Node.jsで競技プログラミングをする際のテンプレート
'use strict';
let input = require('fs').readFileSync('/dev/stdin', 'utf8');
let lines = input.split('\n');
let h1 = parseInt(lines[0]);
let h2 = parseInt(lines[1]);
console.log(h1 - h2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment