논리 연산자 사용
const input = require('fs').readFileSync('dev/stdin');
const year = Number(input);
(year % 4 == 0 && year % 100 != 0) || year % 400 == 0 ? console.log(1) : console.log(0);
논리 연산자 사용
const input = require('fs').readFileSync('dev/stdin');
const year = Number(input);
(year % 4 == 0 && year % 100 != 0) || year % 400 == 0 ? console.log(1) : console.log(0);