728x90
반응형

전체 글 92

백준 25083번 문제(새싹) 파이썬(Python) 풀이 [로밍맨]

문제 링크 https://www.acmicpc.net/problem/25083 25083번: 새싹 아래 예제와 같이 새싹을 출력하시오. www.acmicpc.net 정답 코드는 아래와 같습니다. 1 2 3 4 5 6 print(" ,r\'\"7") print("r`-_ ,\' ,/") print(" \\. \". L_r\'") print(" `~\\/") print(" |") print(" |") cs 풀이는 아래 영상을 참고 바랍니다. https://www.youtube.com/watch?v=kbgfJrKQ7eU 저작권 라이선스: CC BY (출처만 표시하면 자유롭게 이용 가능)

[LeetCode] 26. Remove Duplicates from Sorted Array 파이썬(Python) 풀이

문제 링크 https://leetcode.com/problems/remove-duplicates-from-sorted-array Remove Duplicates from Sorted Array - LeetCode Can you solve this real interview question? Remove Duplicates from Sorted Array - Given an integer array nums sorted in non-decreasing order, remove the duplicates in-place [https://en.wikipedia.org/wiki/In-place_algorithm] such that each unique element ap leetcode.com 투 포인터 문제라..

[LeetCode] 27. Remove Element 파이썬(Python) 풀이

문제 링크 https://leetcode.com/problems/remove-element Remove Element - LeetCode Can you solve this real interview question? Remove Element - Given an integer array nums and an integer val, remove all occurrences of val in nums in-place [https://en.wikipedia.org/wiki/In-place_algorithm]. The order of the elements may be changed. Then r leetcode.com element 간의 순서가 변경되어도 상관 없으니, 순차적으로 방문하면서 지워야 하는 ele..

[LeetCode] 88. Merge Sorted Array 파이썬(Python) 풀이

문제 링크 https://leetcode.com/problems/merge-sorted-array Merge Sorted Array - LeetCode Can you solve this real interview question? Merge Sorted Array - You are given two integer arrays nums1 and nums2, sorted in non-decreasing order, and two integers m and n, representing the number of elements in nums1 and nums2 respectively. Merge nums1 an leetcode.com merge sort 에서 가장 핵심이 되는 merge 함수의 in-place ..

백준 2588번 문제(곱셈) 파이썬(Python) 풀이 [로밍맨]

문제 링크 https://www.acmicpc.net/problem/2588 2588번: 곱셈 첫째 줄부터 넷째 줄까지 차례대로 (3), (4), (5), (6)에 들어갈 값을 출력한다. www.acmicpc.net 정답 코드는 아래와 같습니다. 1 2 3 4 5 6 7 8 9 10 a = int(input()) b = int(input()) b0 = b % 10 b1 = (b % 100) // 10 b2 = b // 100 print(a * b0) print(a * b1) print(a * b2) print(a * b) cs 풀이는 아래 영상을 참고 바랍니다. https://www.youtube.com/watch?v=c4E8gylCyC8 저작권 라이선스: CC BY (출처만 표시하면 자유롭게 이용 가능)

비엣젯 항공 스카이 보스 vs 베트남 항공

생각보다 한글로 된 vietjet air sky boss 에 대한 정보가 별로 없는 것 같아서, 많은 분들에게 도움이 되면 좋을 것 같아 저의 최근 경험을 바탕으로 작성합니다(즉, 틀린 정보가 있을 수도 있고, 책임지지 않습니다). 내돈내산 입니다. 먼저 스카이보스가 뭐냐면, 비엣젯 항공의 프리미엄 이코노미 좌석을 의미합니다. 쉽게 말해서 이코노미보다 좋고, 비지니스보다 안 좋다고 생각하시면 됩니다. 저는 시드니에 다녀왔는데요. 갈 때는 비엣젯 항공의 스카이보스를 타고 갔고, 올 때는 베트남 항공의 이코노미를 탔습니다. 경로는 다음과 같습니다. 갈 때: 인천 -> 호치민 -> 시드니 (비엣젯 항공 스카이보스) 올 때: 시드니 -> 호치민 -> 인천 (베트남 항공 이코노미) [비엣젯 항공 스카이보스의 장점..

일상 2023.10.07

백준 10430번 문제(나머지) 파이썬(Python) 풀이 [로밍맨]

문제 링크 https://www.acmicpc.net/problem/10430 10430번: 나머지 첫째 줄에 A, B, C가 순서대로 주어진다. (2 ≤ A, B, C ≤ 10000) www.acmicpc.net 정답 코드는 아래와 같습니다. 1 2 3 4 5 6 7 import sys A, B, C = map(int, sys.stdin.readline().rstrip().split()) print((A+B)%C) print(((A%C) + (B%C))%C) print((A*B)%C) print(((A%C) * (B%C))%C) Colored by Color Scripter cs 동영상에서 말씀드린 참고하실 링크는 다음과 같습니다. https://roamingman.tistory.com/27 백준 25..

백준 3003번 문제(킹, 퀸, 룩, 비숍, 나이트, 폰) 파이썬(Python) 풀이 [로밍맨]

문제 링크 https://www.acmicpc.net/problem/3003 3003번: 킹, 퀸, 룩, 비숍, 나이트, 폰 첫째 줄에 동혁이가 찾은 흰색 킹, 퀸, 룩, 비숍, 나이트, 폰의 개수가 주어진다. 이 값은 0보다 크거나 같고 10보다 작거나 같은 정수이다. www.acmicpc.net 정답 코드는 아래와 같습니다. 1 2 3 4 5 6 7 import sys origin = [1, 1, 2, 2, 2, 8] arr = list(map(int, sys.stdin.readline().rstrip().split())) for i in range(6): print(origin[i] - arr[i], end = ' ') cs 풀이는 아래 영상을 참고 바랍니다. https://www.youtube.c..

백준 18108번 문제(1998년생인 내가 태국에서는 2541년생?!) 파이썬(Python) 풀이 [로밍맨]

문제 링크 https://www.acmicpc.net/problem/18108 18108번: 1998년생인 내가 태국에서는 2541년생?! ICPC Bangkok Regional에 참가하기 위해 수완나품 국제공항에 막 도착한 팀 레드시프트 일행은 눈을 믿을 수 없었다. 공항의 대형 스크린에 올해가 2562년이라고 적혀 있던 것이었다. 불교 국가인 태국 www.acmicpc.net 정답 코드는 아래와 같습니다. 1 2 n = int(input()) print(n-543) cs 풀이는 아래 영상을 참고 바랍니다. https://www.youtube.com/watch?v=1ZC-Jq06L3o 저작권 라이선스: CC BY (출처만 표시하면 자유롭게 이용 가능)

백준 10926번 문제(??!) 파이썬(Python) 풀이 [로밍맨]

문제 링크 https://www.acmicpc.net/problem/10926 10926번: ??! 준하는 사이트에 회원가입을 하다가 joonas라는 아이디가 이미 존재하는 것을 보고 놀랐다. 준하는 놀람을 ??!로 표현한다. 준하가 가입하려고 하는 사이트에 이미 존재하는 아이디가 주어졌을 때 www.acmicpc.net 정답 코드는 아래와 같습니다. 1 2 3 str = input() print(str, end='') print("??!") cs 풀이는 아래 영상을 참고 바랍니다. https://www.youtube.com/watch?v=YEU-BYerx4w 저작권 라이선스: CC BY (출처만 표시하면 자유롭게 이용 가능)

728x90
반응형