일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- MMTOD
- RuntimeError: DataLoader worker (pid(s) ) exited unexpectedly
- hugging face tokenizer에서 special case 추가하기
- 길찾기
- NLP 논문 리뷰
- The Natural Language Decathlon:Multitask Learning as Question Answering
- Evaluate Multiwoz
- ImageNet Classification with Deep ConvolutionalNeural Networks 리뷰
- 바닥부터 배우는 강화 학습
- Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer 리뷰
- BERT 사용방법
- BART 논문리뷰
- CNN 논문리뷰
- Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer
- Zero-shot Generalization in Dialog State Tracking through GenerativeQuestion Answering
- attention 설명
- T5 논문 리뷰
- Multi Task Learning Objectives for Natural Language Processing
- TOD 논문리뷰
- BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding 리뷰
- UBAR: Towards Fully End-to-End Task-Oriented Dialog System with GPT-2
- 정책기반 agent
- Attention Is All You Need 리뷰
- Multi Task Learning Objectives for Natural Language Processing 리뷰
- 뉴텝스 400
- BERT란
- BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding 논문리뷰
- Attention Is All You Need
- A Neural Attention Model for Abstractive Sentence Summarization
- 다양한 모듈에서 log쓰기
Archives
- Today
- Total
one by one ◼◻◼◻
신고 결과 받기 (2022 KAKAO BLIND RECRUITMENT) 본문
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
from collections import defaultdict
def solution(id_list, report, k):
singoed = set()
answer = []
singoed_cnt = defaultdict(int) # 신고당한 횟수
mail_cnt = defaultdict(int) # 받은 메일의 수
report = list(set(report))
for item in report:
person_A, person_B = item.split(" ")[0],item.split(" ")[1]
singoed_cnt[person_B] +=1
if singoed_cnt[person_B] >= k:
singoed.add(person_B)
for item in report:
person_A, person_B = item.split(" ")[0],item.split(" ")[1]
if person_B in singoed:
mail_cnt[person_A] += 1
for name in id_list:
answer.append(mail_cnt[name])
return answer
|
cs |
'코딩문제' 카테고리의 다른 글
위장 (프로그래머스 코딩테스트 연습-해시) (0) | 2022.06.10 |
---|---|
숫자 문자열과 영단어 (2021 카카오 채용연계형 인턴십) (0) | 2022.06.08 |
로또의 최고 순위와 최저 순위 (2021 Dev-Matching: 웹 백엔드 개발자(상반기) (0) | 2022.06.06 |
신규 아이디 추천 (2021 KAKAO BLIND RECRUITMENT) (0) | 2022.06.06 |
[queue]프로그래머스-기능개발 (0) | 2022.01.22 |
Comments