시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 (추가 시간 없음) 512 MB 67 21 14 82.353%

문제

자바스크립트(ECMA-262에 의해 표준화)를 사용해서 0부터 1000까지 정수를 만들어보자. 단, ![]+-*만 사용할 수 있다.

입력

입력은 없다.

출력

총 1001개의 줄을 출력해야 한다. i+1(0 ≤ i ≤ 1000)번째 줄에는 ![]+-*로만 이루어져 있고, 정수로 평가(typeof(result) == "number")되고, 값은 i와 같은 올바른 자바스크립트 표현식(expression)을 출력한다. 표현식에 공백이 포함되면 안된다.

Easy (1점)

각각의 자바스크립트 표현식은 200글자를 넘으면 안된다.

Hard (2점)

각 표현식은 75글자를 넘을 수 없다.

예제 입력 1


						

예제 출력 1

+![]
+!![]
... (999 more lines)

노트

브라우저 콘솔이나 Node.js를 이용해 테스트해볼 수 있다.

채점은 Node.js v12.16.1를 이용해서 진행한다.

W3sicHJvYmxlbV9pZCI6IjE4NzY1IiwicHJvYmxlbV9sYW5nIjoiMCIsInRpdGxlIjoiXHVjODE1Klx1YzIxOC1cdWI5N2MrW1x1YjljY1x1YjRlNFx1Yzc5MCFdIiwiZGVzY3JpcHRpb24iOiI8cD5cdWM3OTBcdWJjMTRcdWMyYTRcdWQwNmNcdWI5YmRcdWQyYjgoRUNNQS0yNjJcdWM1ZDAgXHVjNzU4XHVkNTc0IFx1ZDQ1Y1x1YzkwMFx1ZDY1NClcdWI5N2MgXHVjMGFjXHVjNmE5XHVkNTc0XHVjMTFjIDBcdWJkODBcdWQxMzAgMTAwMFx1YWU0Y1x1YzljMCBcdWM4MTVcdWMyMThcdWI5N2MgXHViOWNjXHViNGU0XHVjNWI0XHViY2Y0XHVjNzkwLiBcdWIyZTgsIDxjb2RlPiFbXSstKjxcL2NvZGU+XHViOWNjIFx1YzBhY1x1YzZhOVx1ZDU2MCBcdWMyMTggXHVjNzg4XHViMmU0LjxcL3A+XHJcbiIsImlucHV0IjoiPHA+XHVjNzg1XHViODI1XHVjNzQwIFx1YzVjNl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