반응형
반응형
본문 바로가기

Python3 파이썬30

백준: 14924번 폰 노이만과 파리 (Python3) 백준: 14924번 폰 노이만과 파리 (Python3) 폰 노이만과 파리 성공 시간 제한메모리 제한제출정답맞힌 사람정답 비율 1 초 512 MB 3344 2705 2511 81.685% 문제 역사상 최고의 천재중 하나인 폰 노이만에게는 다음과 같은 재밌는 일화가 있다. 그의 동료는 어느 날 폰 노이만의 천재성을 시험해보기 위해서 다음과 같은 질문을 던졌다. “200마일 길이의 철로의 양쪽 끝에 서 있는 두 대의 기차가 시속 50마일의 속도로 서로를 향해 출발했습니다. 이때부터 두 기차가 서로 충돌할 때까지 파리가 시속 75마일의 속도로 두 기차사이를 왔다 갔다 했습니다. 파리가 이동한 거리는 모두 몇 마일일까요?” 폰 노이만은 문제를 듣고 1초의 지체도 없이 150마일이라고 답했다. 그의 동료는 크게 실.. 2022. 8. 6.
백준: 14935번 FA (Python3) 백준: 14935번 FA (Python3) FA 성공 시간 제한메모리 제한제출정답맞힌 사람정답 비율 1 초 128 MB 2493 2066 1793 83.903% 문제 함수 F(x)는 입력으로 주어진 수 x의 첫 자리와 수 x의 자리수를 곱한 결과를 반환하는 함수이다. 예를 들어 x = 932 일때 F(x)는 9×3으로 27을 반환한다. 입력받은 x에 대해서 함수 F를 수행하고, 나온 결과값에 다시 함수 F를 수행하는 것을 반복한다. 계속 반복해서 수행했을 때 어느 시점에서부터 동일한 수가 나오는 경우, 입력 x를 FA수 라고 한다. 입력 x가 주어졌을때 이 수가 FA 수인지 출력하라. 입력 정수 x 가 주어진다. (0 ≤ x ≤ 10100) 출력 정수 x가 FA수 라면 FA를 출력하고, 아니라면 NFA를.. 2022. 8. 6.
백준: 15000번 CAPS (Python3) 백준: 15000번 CAPS (Python3) CAPS 성공다국어 시간 제한메모리 제한제출정답맞힌 사람정답 비율 2 초 512 MB 1500 1117 957 76.683% 문제 지구가 공격받고 있다! 상황이 심각하다는 것을 분명히 하는 메시지를 지구방위군(EDF)에 보내야 합니다. EDF의 가장 강력한 부대는 일본 십대들이 조종하는 메크(거대 이족보행 로봇)로 구성됩니다. 메시지가 긴급하게 표시되도록 하려면 조종사의 모니터에 대문자로 표시되어야 합니다. 불행히도 EDF에서 사용하는 타키온 통신 시스템은 소문자 알파벳 문자로만 문자열을 보낼 수 있습니다. 소문자 알파벳 문자 집합은 'a', 'b', 'c', 'd', 'e', ​​'f', 'g', 'h', 'i' 문자로 구성됩니다. ', 'j', 'k', .. 2022. 8. 6.
백준: 15025번 Judging Moose (Python3) 백준: 15025번 Judging Moose (Python3) Judging Moose 성공다국어 시간 제한메모리 제한제출정답맞힌 사람정답 비율 1 초 512 MB 1363 838 780 62.251% 문제 When determining the age of a bull moose, the number of tines (sharp points), extending from the main antlers, can be used. An older bull moose tends to have more tines than a younger moose. However, just counting the number of tines can be misleading, as a moose can break off the .. 2022. 8. 6.
백준: 15051번 Máquina de café (Python3) 백준: 15051번 Máquina de café (Python3) Máquina de café 성공다국어 시간 제한메모리 제한제출정답맞힌 사람정답 비율 1 초 1024 MB 996 657 604 65.510% 문제 O novo prédio da Sociedade Brasileira de Computação (SBC) possui 3 andares. Em determinadas épocas do ano, os funcionários da SBC bebem muito café. Por conta disso, a presidência da SBC decidiu presentear os funcionários com uma nova máquina de expresso. Esta máquina deve ser i.. 2022. 8. 6.
백준: 15059번 Hard choice (Python3) 백준: 15059번 Hard choice (Python3) Hard choice 성공다국어 시간 제한메모리 제한제출정답맞힌 사람정답 비율 1 초 1024 MB 1306 1139 1082 87.540% 문제 In long flights, airlines offer hot meals. Usually the flight attendants push carts containing the meals down along the aisles of the plane. When a cart reaches your row, you are asked right away: “Chicken, beef, or pasta?” You know your choices, but you have only a few seconds to c.. 2022. 8. 6.
백준: 15080번 Every Second Counts (Python3) 백준: 15080번 Every Second Counts (Python3) Every Second Counts 성공다국어 시간 제한메모리 제한제출정답맞힌 사람정답 비율 2 초 512 MB 1371 781 717 58.964% 문제 Meredith runs a taxi service called Ruber which offers rides to clients in small towns in western Pennsylvania. She wants to get every possible dime out of people who use her taxis, so her drivers charge a flat fee not per minute but per second. It’s important, therefor.. 2022. 8. 6.
백준: 15128번 Congruent Numbers (Python3) 백준: 15128번 Congruent Numbers (Python3) Congruent Numbers 성공다국어 시간 제한메모리 제한제출정답맞힌 사람정답 비율 2 초 512 MB 1650 656 598 40.515% 문제 A congruent number is an integer that is the area of some right triangle where the length of each side of the triangle is a rational number. For this problem, we’ll only consider the legs of the right triangle, and not the hypotenuse. A rational number is a fraction, p/q, w.. 2022. 8. 6.
백준: 15439번 Vera and Outfits (Python3) 백준: 15439번 Vera and Outfits (Python3) Vera and Outfits 성공다국어 시간 제한메모리 제한제출정답맞힌 사람정답 비율 2 초 256 MB 3847 3426 3286 89.245% 문제 Vera owns N tops and N pants. The i-th top and i-th pants have colour i, for 1 ≤ i ≤ N, where all N colours are different from each other. An outfit consists of one top and one pants. Vera likes outfits where the top and pants are not the same colour. How many different out.. 2022. 8. 6.

반응형