Algorithm/๋ฌธ์ œํ’€์ด

[๋ฐฑ์ค€] 9316๋ฒˆ - Hello Judge (JS)

moaoh 2023. 7. 22. 23:59

 

9316๋ฒˆ: Hello Judge

ํ•œ ์ค„์— ํ•˜๋‚˜์˜ Hello World, Judge i! ๋ฅผ ์ถœ๋ ฅํ•œ๋‹ค.

www.acmicpc.net

๋ฌธ์ œ

๋‹น์‹ ์€ N๊ฐœ์˜ ํ…Œ์ŠคํŠธ์ผ€์ด์Šค๋“ค์—๊ฒŒ ๋ฐ˜๋“œ์‹œ ์ธ์‚ฌ๋ฅผ ํ•ด์•ผ ์ด ๋ฌธ์ œ๋ฅผ ํ’€ ์ˆ˜ ์žˆ๋‹ค.

N๊ฐœ์˜ ์ค„์— ๊ฑธ์ณ

"Hello World, Judge i!"

๋ฅผ ์ถœ๋ ฅํ•˜๋Š” ํ”„๋กœ๊ทธ๋žจ์„ ๋งŒ๋“ค๋ผ. ์—ฌ๊ธฐ์„œ i๋Š” ์ค„์˜ ๋ฒˆํ˜ธ์ด๋‹ค.


์ž…๋ ฅ

N์ด ์ฃผ์–ด์ง„๋‹ค. (1 ≤ N ≤ 200)


์ถœ๋ ฅ

ํ•œ ์ค„์— ํ•˜๋‚˜์˜ Hello World, Judge i! ๋ฅผ ์ถœ๋ ฅํ•œ๋‹ค.



ํ’€์ด๊ณผ์ •

code

const hello = () => {
	const n = require('fs')
		.readFileSync('/dev/stdin')
		.toString()
		.trim()
		.split('\n')
		.map(Number);

	for (let i = 1; i <= n; i++) {
		console.log(`Hello World, Judge ${i}!`);
	}
};

hello();


ํ›„๊ธฐ