report VI VI EN
Register | Login
  • HOME
  • PROBLEMSET
  • ROADMAP
  • COMPETITION
  • TOPIC
  • RANKING
  • GUIDE
  • MASHUP
  • ABOUT
  • CONTACT
  • Problem
  • Submit
  • Results
Read number till eternity - MarisaOJ: Marisa Online Judge

Read number till eternity

Time limit: 1000 ms
Memory limit: 256 MB
Read an integer $n$. If $n$ is non-zero, print $n^5$ and repeat. If $n$ is zero, stop the program. ### Input - A list of integer, ending with 0. ### Output - The result. ### Constraints - $-1000 \le n \le 1000$ and the list contains no more than 1000 numbers. ### Example Input: ``` 4 3 12 321 0 ``` Output: ``` 1024 243 248832 3408200705601 ```
Loop
Loop
Even numbers
Factorial
Star Triangle
Folding paper
Fraction
Divisors
Complex Exponentiation
Prime number
Digit Sum
Fibonacci
Read number till eternity
Extremal
Reverse
Mushroom exchanging
Trailing zeros
Decimal to binary
Binary to decimal
Division
Solution
Topic
Basic
Rating 800
Solution (1) Solution