본문 바로가기

Python_Matter/Solve

(117)
Python Learn the basics Quiz 77 Q> How old are you in number of days? (며칠 째 몇 살입니까?) It's easy to calculate - just subtract your birthday from today. (계산하기 쉽습니다 - 오늘부터 생일을 빼십시오.) We could make this a real challenge though and count the difference between any dates. (우리는 이것을 진정한 도전으로 만들 수 있으며 어떤 날짜의 차이라도 세어 볼 수 있습니다.) You are given two dates as tuples with three numbers - year, month and day. (년, 월, 일 세 개의 숫자가있는 튜플로 두 개의 날짜가 부여..
Python Learn the basics Quiz 76 Q> You need to figure if a wellfounded and wellsized iterable is completely empty. (유망하고 잘 알려진 iterable이 완전히 비어 있는지 파악해야합니다.) An iterable x0 is wellfounded if there is no infinite sequence (무한 시퀀스가 ​​없다면 iterable x0을 잘 알고있다.) x1,x2,x3... such that ... in x3 in x2 in x1 in x0 (where in is meant iteratively, x(n+1) will be encountered while iterating through xn). (x1, x2, x3 ... 이와 같이 ... x0의 x1에서..
Python Learn the basics Quiz 75 Q> Nicola likes to categorize all sorts of things. (Nicola는 모든 종류의 것들을 분류하기를 좋아합니다.) He categorized a series of numbers and as the result of his efforts, a simple sequence of numbers became a deeply-nested list. (그는 일련의 숫자를 범주화하고 그의 노력의 결과로 단순한 숫자의 연속이 깊이 중첩 된 목록이되었습니다.) Sophia and Stephan don't really understand his organization and need to figure out what it all means. (소피아와 스테판은 자신의 조직을 정말로 이..
Python Learn the basics Quiz 74 Q> Sort the given iterable so that its elements end up in the decreasing frequency order, that is, the number of times they appear in elements. (주어진 iterable을 정렬하여 요소가 감소하는 빈도 순서로 끝나도록합니다. 즉 요소에 나타나는 횟수입니다.) If two elements have the same frequency, they should end up in the same order as the first appearance in the iterable. (두 요소의 빈도가 같으면 iterable의 첫 번째 모양과 동일한 순서로 끝나야합니다.) Input: Iterable (반복 ..
Python Learn the basics Quiz 73 Q> One day, on a typical spring afternoon, Sir Ronald has been looking around his land, riding a horse. (어느 날, 전형적인 봄 오후, Ronald 경은 말을 타고 그의 땅을 둘러 보았습니다.) Nothing foretold troubles, when suddenly Sir Ronald heard a scream for help, coming from somewhere nearby: (갑자기 Ronald 경이 근처 어딘가에서 오는 도움 소리를 듣자 갑자기 문제가 발생하지 않았습니다.) - "Help! Help!" - shouted a piercing young girl's voice. (- "도와 줘요!" - 피어싱 어린 ..
Python Learn the basics Quiz 72 Q> Every true traveler must know how to do 3 things: fix the fire, find the water and extract useful information from the nature around him. (모든 진정한 여행자는 3 가지 방법을 알아야합니다. 화재를 해결하고 물을 찾아 주위의 자연에서 유용한 정보를 추출하십시오.) Programming won't help you with the fire and water, but when it comes to the information extraction - it might be just the thing you need. (프로그래밍은 화재와 물에 도움이되지 않지만 정보 추출에 있어서는 필요한 것일 수 있..
Python Learn the basics Quiz 71 Q> There are four substring missions that were born all in one day and you shouldn’t be needed more than one day to solve them. (하루에 모두 태어난 네 개의 하위 문자열 임무가 있으며이를 해결하기 위해 하루 이상을 필요로하지 않아야합니다.) All of those mission can be simply solved by brute force, but is it always the best way to go? (모든 임무는 짐승들에 의해 간단히 해결 될 수 있지만, 항상 최선의 방법입니까?) (you might not have access to all of those missions yet, but the..
Python Learn the basics Quiz 70 Q> You prefer a good old 12-hour time format. (좋은 12 시간 형식을 선호합니다.) But the modern world we live in would rather use the 24-hour format and you see it everywhere. (그러나 우리가 살고있는 현대 세계는 오히려 24 시간 형식을 사용하고 어디에서나 볼 수 있습니다.) Your task is to convert the time from the 24-h format into 12-h format by following the next rules: - the output format should be 'hh:mm a.m.' (for hours before midday) or 'hh:mm..