CALKO LAB
close
프로필 배경
프로필 로고

CALKO LAB

  • 분류 전체보기 (379)
    • ALGORITHM (371)
      • PYTHON (369)
      • JAVASCRIPT (2)
    • STUDY (7)
      • Python (5)
      • CSS (1)
      • React (1)
    • 기타 (0)
  • 홈
백준 BAEKJOON 31833번 온데간데없을뿐더러 [PYTHON/파이썬]

백준 BAEKJOON 31833번 온데간데없을뿐더러 [PYTHON/파이썬]

백준 BAEKJOON 31833번 온데간데없을뿐더러 [PYTHON/파이썬] (BRONZE Ⅲ)https://www.acmicpc.net/problem/31833      A와 B를 문자열인 리스트로 입력을 받은 후join 함수를 사용하여 합친 문자열을 만들었다.그리고 다시 int 형으로 변환 시켜준 뒤if 문을 사용하여 A와 B를 비교하여 작은 값을 출력하였다.      N = int(input())A = int("".join(input().split()))B = int("".join(input().split()))if A

  • format_list_bulleted ALGORITHM/PYTHON
  • · 2024. 5. 24.
  • textsms
백준 BAEKJOON 31822번 재수강 [PYTHON/파이썬]

백준 BAEKJOON 31822번 재수강 [PYTHON/파이썬]

백준 BAEKJOON 31822번 재수강 [PYTHON/파이썬] (BRONZE Ⅳ)https://www.acmicpc.net/problem/31822       재수강할 과목 코드의 앞 5자리가 일치하는지 확인 후결괏값에 더해준 뒤 재수강으로 인정되는 과목의 개수를 출력하면 된다.       subjectCode = input()N = int(input())result = 0for _ in range(N): availableCode = input() if subjectCode[:5] == availableCode[:5]: result += 1print(result)

  • format_list_bulleted ALGORITHM/PYTHON
  • · 2024. 5. 22.
  • textsms
백준 BAEKJOON 31776번 예비 소집 결과 보고서 [PYTHON/파이썬]

백준 BAEKJOON 31776번 예비 소집 결과 보고서 [PYTHON/파이썬]

백준 BAEKJOON 31776번 예비 소집 결과 보고서 [PYTHON/파이썬] (BRONZE Ⅲ)https://www.acmicpc.net/problem/31776      입력된 시간이 -1인 경우는 문제를 해결하지 않은 것으로 간주하고, 최대 시간인 121로 설정한다. (입력 조건 확인)그리고 문제를 풀 때 번호가 작은 순서대로 풀었는지 확인하여조건에 맞는 팀의 수를 결과로 출력하면 된다.       N = int(input())result = 0for _ in range(N): solve = list(map(int, input().split())) if sum(solve) == -3: # 만약 모든 문제를 해결하지 않은 팀이라면 다음 팀으로 넘어감 continue f..

  • format_list_bulleted ALGORITHM/PYTHON
  • · 2024. 5. 16.
  • textsms
백준 BAEKJOON 31821번 학식 사주기 [PYTHON/파이썬]

백준 BAEKJOON 31821번 학식 사주기 [PYTHON/파이썬]

백준 BAEKJOON 31821번 학식 사주기 [PYTHON/파이썬] (BRONZE Ⅳ)https://www.acmicpc.net/problem/31821       입력 순서대로 학식 가격을 리스트에 저장한 뒤새내기들이 먹고 싶어 하는 메뉴의 번호의 가격을결괏값에 더해줬다.      N = int(input())menu = [int(input()) for _ in range(N)]result = 0M = int(input())for _ in range(M): eatMenu = int(input()) result += menu[eatMenu - 1]print(result)

  • format_list_bulleted ALGORITHM/PYTHON
  • · 2024. 5. 15.
  • textsms
백준 BAEKJOON 31798번 단원평가  [PYTHON/파이썬]

백준 BAEKJOON 31798번 단원평가  [PYTHON/파이썬]

백준 BAEKJOON 31798번 단원평가 [PYTHON/파이썬] (BRONZE Ⅲ)https://www.acmicpc.net/problem/31798      위의 수 두 개 중 하나라도 0이라면아래 수의 제곱에서 나머지 수를 빼주면 된다.아래 수가 0이라면위의 수 두 개를 더한 뒤 루트를 씌워주면 된다.루트는 1/2 제곱을 해주면 된다.       a, b, c = map(int, input().split())if a == 0: print(int(c**2 - b))elif b == 0: print(int(c**2 - a))elif c == 0: print(int((a + b) ** (1 / 2)))

  • format_list_bulleted ALGORITHM/PYTHON
  • · 2024. 5. 9.
  • textsms
백준 BAEKJOON 31789번 모험의 시작 [PYTHON/파이썬]

백준 BAEKJOON 31789번 모험의 시작 [PYTHON/파이썬]

백준 BAEKJOON 31789번 모험의 시작 [PYTHON/파이썬] (BRONZE Ⅲ)https://www.acmicpc.net/problem/31789       4인조가 가진 돈 X와 후안의 공격력 S에 맞춰무기를 살 수 있는지 확인하여 4인조가 모험을 떠날 수 있게 도와주자!       N = int(input())X, S = map(int, input().split())weaponInfo = [list(map(int, input().split())) for _ in range(N)]result = Falsefor c, p in weaponInfo: if c S: result = True breakif result: print("YES")else: pri..

  • format_list_bulleted ALGORITHM/PYTHON
  • · 2024. 5. 8.
  • textsms
  • navigate_before
  • 1
  • ···
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • ···
  • 62
  • navigate_next
공지사항
전체 카테고리
  • 분류 전체보기 (379)
    • ALGORITHM (371)
      • PYTHON (369)
      • JAVASCRIPT (2)
    • STUDY (7)
      • Python (5)
      • CSS (1)
      • React (1)
    • 기타 (0)
인기 글
최근 글
최근 댓글
태그
  • #baekjoon
  • #BRONZE Ⅳ
  • #백준
  • #BRONZE Ⅱ
  • #사칙연산
  • #수학
  • #BRONZE Ⅲ
  • #문자열
  • #python
  • #구현
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바