settings.py INSTALLED_APPS = [ ... 'allauth', 'allauth.account', 'allauth.socialaccount', 'allauth.socialaccount.providers.google', 'allauth.socialaccount.providers.kakao', ... ] AUTHENTICATION_BACKENDS = ( ... 'allauth.account.auth_backends.AuthenticationBackend', ) SITE_ID = 1 SOCIALACCOUNT_LOGIN_ON_GET=True SOCIALACCOUNT_PROVIDERS = { 'kakao' : { 'SCOPE': [ 'profile_nickname', 'account_email'..

전체 글
지옥에서 올라온 강인한 프로그래머from math import ceil def solution(fees, records): basic_time = fees[0] basic_fee = fees[1] additinoal_time = fees[2] additional_fee = fees[3] car_dict = {} for record in records: time, car, in_out = record.split() if car in car_dict: car_dict[car].append(time) else: car_dict[car] = [time] car_fee_dict = {} for car in car_dict.keys(): for i in range(0, len(car_dict[car]), 2): if i == len(car_dic..
from collections import Counter def solution(N, stages): #실패율 => 도달했지만 클리어 못한 플레이어의 수 / 스테이지에 도달한 플레이어수 #스테이지의 개수 N, 현재 멈춰있는 스테이지의 번호 배열 stages #실패율이 높은 스테이지부터 내림차순으로 스테이지의 번호가 담긴 배열을 return하라. #현재 스테이지에 멈춘 사람들 / 전체 명수 - 전 스테이지의 명 수 빼기 => 실패율 for문으로 #dictionary로 order 만들기. stage_dict = Counter(stages) #스테이지에 따른 플레이어의 수 total_players = len(stages) #플레이어의 수 failer_dict = {} # print("stage dict : "..