본문 바로가기

Algorithm/swea18

[파이썬]swea 15230: 알파벳 공부 https://swexpertacademy.com/main/solvingProblem/solvingProblem.do SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com 단순 구현문제 t = int(input()) abc = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"] for tc in range(1,t+1): arr = list(input()) cnt = 0 for i in range(len(arr)): if arr[i] == abc[i]: cnt+=1 else: bre.. 2023. 1. 30.
[파이썬]swea 1926: 간단한 369게임 https://swexpertacademy.com/main/code/problem/problemDetail.do?problemLevel=2&contestProbId=AV5PTeo6AHUDFAUq&categoryId=AV5PTeo6AHUDFAUq&categoryType=CODE&problemTitle=&orderBy=FIRST_REG_DATETIME&selectCodeLang=ALL&select-1=2&pageSize=10&pageIndex=1 SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com 구현문제 n = int(input()) for i in range(1,n+1): if "3" in str(i) or "6".. 2023. 1. 29.
[파이썬]swea 1859: 백만 장자 프로젝트 https://swexpertacademy.com/main/code/problem/problemDetail.do?problemLevel=2&contestProbId=AV5LrsUaDxcDFAXc&categoryId=AV5LrsUaDxcDFAXc&categoryType=CODE&problemTitle=&orderBy=FIRST_REG_DATETIME&selectCodeLang=ALL&select-1=2&pageSize=10&pageIndex=1 SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com 알고리즘은 들어가지 않지만 모르고 보면 안풀리는 문제 뒤에서부터 보며 Max값을 변경해주고, Max값이 변하지 않는다면 판.. 2023. 1. 28.
[파이썬] swea 15612: 체스판 위의 룩 배치 https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AYOBfxwaAXsDFATW&categoryId=AYOBfxwaAXsDFATW&categoryType=CODE&problemTitle=%EC%B2%B4%EC%8A%A4&orderBy=FIRST_REG_DATETIME&selectCodeLang=ALL&select-1=&pageSize=10&pageIndex=1 SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com 단순 구현문제 주어진 조건이 맞는지 안맞는지 확인하고 출력하면 끝! 8*8의 체스판이라 시간적인 부분은 따로 고려하지 .. 2023. 1. 18.
swea 2072. 홀수만 더하기 https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AV5QSEhaA5sDFAUq SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com 테스트케이스가 주어지고 주어진 숫자들 중, 홀수만 찾아 더하여 출력하는 문제이다. t = int(input()) for tc in range(1,t+1): arr = list(map(int,input().split())) result = 0 for i in range(10): if arr[i]%2 ==1: result+=arr[i] print(f'#{tc} {result}') 2022. 8. 22.
swea 1865. 동철이의 일 분배 https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AV5LuHfqDz8DFAXc&categoryId=AV5LuHfqDz8DFAXc&categoryType=CODE&problemTitle=%EB%8F%99%EC%B2%A0&orderBy=FIRST_REG_DATETIME&selectCodeLang=ALL&select-1=&pageSize=10&pageIndex=1 SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com t = int(input()) for tc in range(1,t+1): n = int(input()) arr = [l.. 2022. 6. 3.