전체 글 226

동사 'Subject'는 무슨 뜻일까요?

명사 Subject: 'Subject'는 명사일때 1.주제 2.과목 이라는 뜻으로 많이 사용됩니다. 'The new student was a popular subject of conversation' 는 '새로 온 학생은 인기 있는 대화 주제 입니다' 라는 뜻으로 'What is your favorite subject'라고 하면 '가장 좋아하는 과목이 뭐야?'라는 뜻으로 사용됩니다. 동사 Subject: 그런데 'Subject'가 동사로 사용된다면 어떻게 될까요? 'Subject to'는 대개 '(나쁜) 영향을 받다', 라는 뜻으로 사용됩니다. 'During the hurricane, many buildings were subjected to strong winds.'라고 하면 ''허리케인 기간 동안 많..

영어 2022.06.07

'Critical' 의 뜻을 알아보자!

'Cretical'은 Krisis 에서 출발한 단어입니다. krisis는 '판단' 및 '재판 결과'라는 법원에서 쓰이는 뜻을 가졌는데, 이후 변형되어 '죽음으로의 전환'이라는 뜻을 가지게 되었습니다. 그래서 의사가 심각하게 다친 환자를 수술하기 전 'He's in critical condition, We're trying to stabilize him' 라며 '환자는 위독한 상태입니다. 저희는 환자를 안정시키기 위해 노력하고 있습니다.' 라며 수술실 앞에서 의사가 환자의 가족들에게 말할 수 있습니다.

영어 2022.06.07

'Terminal', 'Terminate' 의 뜻을 알아보자!

Terminal이라고 하면 보통 위와 같은 사진을 떠올리게 됩니다. 그러나 Terminal은 '터미널' 이라는 뜻 이외에도 여러가지 뜻이 있습니다. 영어 어원 'termin'은 라틴어로 '끝, 마지막' 을 나타내기에, Terminal은 '종점, 끝의, 마지막'의 뜻을 나타냅니다. 그래서 'I'm terninally ill'이나 'I have a terminal illness'라고 하면 심각한 질병에 걸렸다는 뜻입니다. 그리고 'Terminate'는 '끝으로 가지고 가다' 즉 '끝나다, 종료되다, 종점에 다다르다' 라는 뜻이 됩니다.

영어 2022.06.07

LeetCode 178. Rank Scores [MySql]

https://leetcode.com/problems/rank-scores/ Rank Scores - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 코드: select score,DENSE_RANK() OVER (ORDER BY Score DESC) AS 'Rank' from Scores order by score DESC Colored by Color Scripter cs 풀이: 스코어를 역순으로 출력하며 DENSE_RANK() OVER()를 이용하여 요구하는..

Leetcode 2022.06.03

LeetCode 1115. Print FooBar Alternately [C++/ promise]

https://leetcode.com/problems/print-foobar-alternately/ Print FooBar Alternately - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 코드 : class FooBar { private: int n; std::promise a, b; // 꼭 출력해줄 것이라 약속한다 public: FooBar(int n) { this->n = n; b.set_value(true); // foo를 먼저 출력해야하므로 b를..

Leetcode 2022.06.03

백준 15927: 회문은 회문아니야!! [파이썬]

https://www.acmicpc.net/problem/15927 15927번: 회문은 회문아니야!! 팰린드롬이란 앞으로 읽으나 뒤로 읽으나 같은 문자열을 말한다. 팰린드롬의 예시로 POP, ABBA 등이 있고, 팰린드롬이 아닌 것의 예시로 ABCA, PALINDROME 등이 있다. 같은 의미를 가지는 여러 단어들을 www.acmicpc.net 코드 : import sys def is_palindrome(word): list_word = list(word) for i in range(len(list_word) // 2): if list_word[i] == list_word[len(list_word) - 1 - i]: pass else: return False return True def all_same..