SlideShare a Scribd company logo
1 of 5
G. 대문자
Solution
• L : 문자열의 길이
• D(i) : i부터 L-1까지의 문자를 사용하여
만들 수 있는 대문자 문장 or 빈 문장의 수
Solution
• D(i) = 1
A로 시작하는 경우
(i 이후 a가 3번 이상 등장 할 때)
jA : i 이후 세 번째 a의 인덱스
…
+
빈 문자열
D(jA+ 1)
D(jZ+ 1)
+
+
Z로 시작하는 경우
(i 이후 z가 3번 이상 등장 할 때)
jZ : i 이후 세 번째 z의 인덱스
• D(L) = 1 빈 문자열
For 0 ≤ i ≤ L - 1
Solution
• 답 : D(0) – 1 (빈 문자열 제외)
구현
• 시간복잡도 : O(L2)

More Related Content

Viewers also liked

1123밀크티3
1123밀크티31123밀크티3
1123밀크티3Heeji Yang
 
Ispezioni, perquisizioni, sequestri
Ispezioni, perquisizioni, sequestriIspezioni, perquisizioni, sequestri
Ispezioni, perquisizioni, sequestriGiovanni Fiorino
 
Software para crear Ambientes virtuales
 Software para crear Ambientes virtuales  Software para crear Ambientes virtuales
Software para crear Ambientes virtuales Heydi94
 
Food Innovation and Value Added on and Beyond the Farm - Municipal Agricultur...
Food Innovation and Value Added on and Beyond the Farm - Municipal Agricultur...Food Innovation and Value Added on and Beyond the Farm - Municipal Agricultur...
Food Innovation and Value Added on and Beyond the Farm - Municipal Agricultur...Carolyn Puterbough
 
El primer dia de Colegio
El primer dia de ColegioEl primer dia de Colegio
El primer dia de Colegiopasapera123
 
24 hour panel people - audience report
24 hour panel people - audience report24 hour panel people - audience report
24 hour panel people - audience reportWill Saunders
 
Direito comunitário a partir das experiências da união
Direito comunitário a partir das experiências da uniãoDireito comunitário a partir das experiências da união
Direito comunitário a partir das experiências da uniãoHeron Castilho Cunha Miranda
 
Utrecht/Kenniscongres2016/27/M.Wassink en G.Bergsma/Met vrijwillige mentoren ...
Utrecht/Kenniscongres2016/27/M.Wassink en G.Bergsma/Met vrijwillige mentoren ...Utrecht/Kenniscongres2016/27/M.Wassink en G.Bergsma/Met vrijwillige mentoren ...
Utrecht/Kenniscongres2016/27/M.Wassink en G.Bergsma/Met vrijwillige mentoren ...Utrecht
 
SYNERGY Induction to Pedagogy Programme - Learning Materials and Objectives (...
SYNERGY Induction to Pedagogy Programme - Learning Materials and Objectives (...SYNERGY Induction to Pedagogy Programme - Learning Materials and Objectives (...
SYNERGY Induction to Pedagogy Programme - Learning Materials and Objectives (...Sarah Land
 
SYNERGY Induction to Pedagogy Programme - Training of Peers (ITALIAN)
SYNERGY Induction to Pedagogy Programme - Training of Peers (ITALIAN)SYNERGY Induction to Pedagogy Programme - Training of Peers (ITALIAN)
SYNERGY Induction to Pedagogy Programme - Training of Peers (ITALIAN)Sarah Land
 
Que es un blog educativo
Que es un blog educativoQue es un blog educativo
Que es un blog educativoSonia Núñez
 

Viewers also liked (18)

Biomas
BiomasBiomas
Biomas
 
1123밀크티3
1123밀크티31123밀크티3
1123밀크티3
 
Ispezioni, perquisizioni, sequestri
Ispezioni, perquisizioni, sequestriIspezioni, perquisizioni, sequestri
Ispezioni, perquisizioni, sequestri
 
Amistad
AmistadAmistad
Amistad
 
Software para crear Ambientes virtuales
 Software para crear Ambientes virtuales  Software para crear Ambientes virtuales
Software para crear Ambientes virtuales
 
Food Innovation and Value Added on and Beyond the Farm - Municipal Agricultur...
Food Innovation and Value Added on and Beyond the Farm - Municipal Agricultur...Food Innovation and Value Added on and Beyond the Farm - Municipal Agricultur...
Food Innovation and Value Added on and Beyond the Farm - Municipal Agricultur...
 
Anja Fonseca
Anja FonsecaAnja Fonseca
Anja Fonseca
 
Comida típica
Comida típicaComida típica
Comida típica
 
CROWDPAY_CLIENT.PDF
CROWDPAY_CLIENT.PDFCROWDPAY_CLIENT.PDF
CROWDPAY_CLIENT.PDF
 
El primer dia de Colegio
El primer dia de ColegioEl primer dia de Colegio
El primer dia de Colegio
 
Big data taller inegi sedesol
Big data taller inegi sedesolBig data taller inegi sedesol
Big data taller inegi sedesol
 
24 hour panel people - audience report
24 hour panel people - audience report24 hour panel people - audience report
24 hour panel people - audience report
 
Direito comunitário a partir das experiências da união
Direito comunitário a partir das experiências da uniãoDireito comunitário a partir das experiências da união
Direito comunitário a partir das experiências da união
 
Flores
FloresFlores
Flores
 
Utrecht/Kenniscongres2016/27/M.Wassink en G.Bergsma/Met vrijwillige mentoren ...
Utrecht/Kenniscongres2016/27/M.Wassink en G.Bergsma/Met vrijwillige mentoren ...Utrecht/Kenniscongres2016/27/M.Wassink en G.Bergsma/Met vrijwillige mentoren ...
Utrecht/Kenniscongres2016/27/M.Wassink en G.Bergsma/Met vrijwillige mentoren ...
 
SYNERGY Induction to Pedagogy Programme - Learning Materials and Objectives (...
SYNERGY Induction to Pedagogy Programme - Learning Materials and Objectives (...SYNERGY Induction to Pedagogy Programme - Learning Materials and Objectives (...
SYNERGY Induction to Pedagogy Programme - Learning Materials and Objectives (...
 
SYNERGY Induction to Pedagogy Programme - Training of Peers (ITALIAN)
SYNERGY Induction to Pedagogy Programme - Training of Peers (ITALIAN)SYNERGY Induction to Pedagogy Programme - Training of Peers (ITALIAN)
SYNERGY Induction to Pedagogy Programme - Training of Peers (ITALIAN)
 
Que es un blog educativo
Que es un blog educativoQue es un blog educativo
Que es un blog educativo
 

More from Gimun Eom (10)

M
MM
M
 
H
HH
H
 
G
GG
G
 
E
EE
E
 
M
MM
M
 
H
HH
H
 
E
EE
E
 
Capstonetech1 v.0.03
Capstonetech1 v.0.03Capstonetech1 v.0.03
Capstonetech1 v.0.03
 
Capstonetech1 v002
Capstonetech1 v002Capstonetech1 v002
Capstonetech1 v002
 
Capstone tech 1
Capstone tech 1Capstone tech 1
Capstone tech 1
 

G

  • 2. Solution • L : 문자열의 길이 • D(i) : i부터 L-1까지의 문자를 사용하여 만들 수 있는 대문자 문장 or 빈 문장의 수
  • 3. Solution • D(i) = 1 A로 시작하는 경우 (i 이후 a가 3번 이상 등장 할 때) jA : i 이후 세 번째 a의 인덱스 … + 빈 문자열 D(jA+ 1) D(jZ+ 1) + + Z로 시작하는 경우 (i 이후 z가 3번 이상 등장 할 때) jZ : i 이후 세 번째 z의 인덱스 • D(L) = 1 빈 문자열 For 0 ≤ i ≤ L - 1
  • 4. Solution • 답 : D(0) – 1 (빈 문자열 제외)