C [ BOJ 2828 ] S5 사과 담기 게임 { C++ } https://www.acmicpc.net/problem/2828 2828번: 사과 담기 게임 상근이는 오락실에서 바구니를 옮기는 오래된 게임을 한다. 스크린은 N칸으로 나누어져 있다. 스크린의 아래쪽에는 M칸을 차지하는 바구니가 있다. (M> M >> N >> J; // M = 전체 칸, N = 바구니 크기 (1 ≤ M > A; // 바구니 범위 안이면 스킵. if (A >= L.. Algorithm/Greedy Algorithm 2022.06.25
C [ BaekJoon - Python & Java ] 단계별로 풀기 3. For 단계별로 풀기 - 3. for 2749 곱셈 n = int(input()) a = 1 while a < 10: print(f"{n} * {a} = {n * a}") a += 1 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int j = sc.nextInt(); for(int i = 1; i < 10; i++){ System.out.println(j + " * " + i + " = " + j * i); } sc.close(); } } 10950 A + B - 3 n = int(input()) while n != 0: a, b = m.. Algorithm/BOJ 2021.12.09
C [ BaekJoon - Python ] 단계별로 풀기 2. IF 단계별로 풀기 - 2. if문 1330 두 수 비교하기 a, b = map(int, input().split()) if a > b: print(">") elif b > a: print(" Algorithm/BOJ 2021.12.09
C [ BaekJoon - Python ] 1213. 팰린드롬 만들기(Silver 4) n = sorted(list(input().rstrip())) c = 0 x = "" if len(n) == 2: if n[0] != n[1]: print("I'm Sorry Hansoo") quit() i = 0 l = len(n) while i 1: print("I'm Sorry Hansoo") quit() i += 1 for _ in n[::2] + [x] + n[::-2]: print(_, end="") 카테고리 없음 2021.12.09
C [ BaekJoon - Python ] 23738. Ресторан (Bronze 2) n = input() l = [['B', 'v'], ['E', 'ye'], ['H', 'n'], [ 'P', 'r'], ['C', 's'], ['Y', 'u'], ['X', 'h']] for v in l: n = n.replace(v[0], v[1]) print(n.lower()) Algorithm/BOJ 2021.12.09
C [ BaekJoon - Python ] 23305. 수강변경 (Silver 5) 23305. 수강변경 (Silver 5) 👉 문제 👉 풀이 n = int(input()) l = [0] * 1000001 for i in list(map(int, input().split())): l[i] += 1 c = 0 for i in list(map(int, input().split())): if l[i] >= 1: l[i] -= 1 else: c += 1 print(c) Algorithm/BOJ 2021.11.30
C [ BaekJoon - Python ] 단계별로 풀기 1. 출력 입출력 (I/O) 단계별로 풀기 - 1. 입출력 # 참조 링크 파이썬으로 정수 입력 받기 1000번 A + B a, b = map(int, input().split()) print(a+b) 1001번 A - B a, b = map(int, input().split()) print(a - b) 10998번 A * B a, b = map(int, input().split()) print(a * b) 1008번 A / B a, b = map(int, input().split()) print(a/b) 10869번 사칙연산 a, b = map(int, input().split()) print(a+b) print(a-b) print(a*b) print(int(a/b)) print(a % b) 10430 나머지 a, b, c = ma.. Algorithm/BOJ 2021.11.30