Last active
January 17, 2022 16:14
-
-
Save if1live/68086baccd7cea98de6b506a4073888b to your computer and use it in GitHub Desktop.
https://www.acmicpc.net/ typescript + windows + powershell template
This file contains 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 fs = require('fs') | |
function read_stdin(): string { | |
return fs.readFileSync(0).toString(); | |
} | |
const chunk = read_stdin(); | |
const numbers = chunk.split('\n')[0].split(' ').map(x => parseInt(x, 10)); | |
const [a, b] = numbers; | |
const c = a + b; | |
process.stdout.write(c.toString()); |
Author
if1live
commented
Jan 17, 2022
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment