Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2948 #10

Closed
leedoopal opened this issue Dec 18, 2020 · 1 comment
Closed

2948 #10

leedoopal opened this issue Dec 18, 2020 · 1 comment

Comments

@leedoopal
Copy link
Owner

1924랑 같은 문제인데 틀렸다고 해요.....! 영문을 모르겠어요

>>> 백준링크

const input = require('fs').readFileSync('/dev/stdin').toString().split(' ');
const month = input[1];
const day = input[0];
const week = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
console.log(week[new Date(`2009-${month}-${day}`).getDay()]);

디버깅 했을 때 요일 잘 나오는데.. 이상해요....!

@KoEonYack
Copy link
Collaborator

image

우선 어디선가 잘못되어 보이네요!!(?ㅅ?)

장담한는게 이건 코테에 절대안나와요, 시간낭비에요 따흑

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants