¿La página no carga? Prueba haciendo clic aquí.
Placeholder

#9193
Idioma restringido

변수와 입력 - 자가진단 6-1 1s 32MB

Problemas

형과 동생의 이름과 출생연도를 입력 받아 출력 예와 같이 출력하는 프로그램을 작성하시오.


Entrada

첫 줄의 형의 이름과 출생연도가 주어진다.

두 번째 줄에 동생의 이름과 출생연도가 주어진다.

이름은 10 이하의 문자열이며, 출생연도는 1900 이상 2100 이하의 정수이다.


Ejemplo #1

Jung 2008
Kang 2013
Jung was born in 2008
Kang was born in 2013
Jung is 5 years older than Kang

Ejemplo #2

Bob 2000
Cat 2020
Bob was born in 2000
Cat was born in 2020
Bob is 20 years older than Cat

Fuente

자기주도 파이썬 4판

Debes iniciar sesión para escribir código.