Pokémon Master
Time limit1sMemory limit128 MB
Given a Pokedex number up to 718, print the matching Pokemon name and its types in order.
- Level
Easy1 of 10
- Topics
- Array, Implementation
- Solved
- No attempts yet
Problem
You are given the National Pokédex number of a Pokémon. Write a program that prints the name and the type of the Pokémon with number .
Input
The first line contains the Pokémon number . is a natural number no greater than .
Output
Print the name of the Pokémon on the first line. Print its type on the second line. A Pokémon with two types has them printed in Pokédex order, separated by a single space.
Hint
The data for this problem was built from this page. The spelling of the names and the types follows that page as well.