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 ] 단계별로 풀기 4. while (Python & Java & JS) 단계별로 풀기 - 4. while 10952 A + B - 5 import sys input = sys.stdin.readline while True: a, b = map(int, input().split()) if a + b: print(a + b) else: break let fs = require('fs'); let input = fs.readFileSync(__dirname + '/dev/stdin').toString().split('\n'); let i = 0; let res = ""; while (true) { let nums = input[i].split(" "); let a = nums[0] / 1; let b = nums[1] / 1; if (a.. Algorithm/BOJ 2021.12.09
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 ] 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
C [ BaekJoon - Python ] 별찍기 모음 stars 2441 별 찍기 - 4 n = int(input()) for i in range(0, n): print(" " * (i), end="") print("*" * (n - i)) ***** **** *** ** * 2442 별 찍기 - 5 n = int(input()) for i in range(1, n + 1): print(" " * (n - i), end="") print("*" * (i * 2 - 1)) * *** ***** ******* *********2443 별 찍기 - 6 n = int(input()) for i in range(n, 0, -1): print(" " * (n - i), end="") print("*" * (i * 2 - 1)) ********* ******* ****.. Algorithm/BOJ 2021.11.30