def solution(bridge_length, weight, truck_weights): bridge_list = [] sum = 0 count = 0 while True: if count > 0 and sum == 0: break if len(bridge_list) > bridge_length - 1: sum -= bridge_list[0] bridge_list.pop(0) if len(truck_weights) != 0: if sum + truck_weights[0]
import os import time import socket from urllib.request import urlretrieve from urllib.error import HTTPError, URLError from selenium import webdriver from selenium.common.exceptions import ElementClickInterceptedException, NoSuchElementException, \ ElementNotInteractableException from PIL import Image from pygame import mixer 필요한 모듈 import def scroll_down(): scroll_count = 0 print("ㅡ 스크롤 다운 시작 ..