// Use i() to get the problem input and o() to output your solution.
// Test and validation cases are different and randomly generated.
1. Hello World
Return the string "Hello World"
// 최초 작성
o("Hello World");
// Javascript니까 ; 제거
o("Hello World")
// 1등이 14 bytes인 것을 보고 구글링을 하다가 백틱(backtick)을 사용하는 방법 발견
o`Hello World`
2. Sum of Squares of Even Numbers
Print the sum of the squares of even numbers, odd numbers should be ignored.
The numbers are positive integers, they will be given on the same line, separated by a space.
// 최초 작성 48 bytes
s=0;i().split(" ").forEach(a=>s+=a%2?0:a*a);o(s)
// 약간의 튜닝 45 bytes
i(s=0).split` `.forEach(a=>s+=a%2?0:a*a);o(s)
// forEach를 for로 변경하여 42 bytes
for(a of i(s=0).split` `)s+=a%2?0:a*a;o(s)
// map을 사용하여 41 bytes
i(s=0).split` `.map(a=>s+=a%2?0:a*a);o(s)
// 1등이 40 bytes라 어떻게 줄일까 고민을 하다가
// a%2?0:a*a 부분을 !(a%2)*a*a 형태로 하면 좋을텐데...
// 최종 40 bytes
i(s=0).split` `.map(a=>s-=~a%2*a*a);o(s)