老BOJ 11 Counting
生活随笔
收集整理的這篇文章主要介紹了
老BOJ 11 Counting
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
Counting
| Accept:100?? | ??Submit:807 |
| Time Limit:2000MS?? | ??Memory Limit:65536KB |
Description
?
We are familiar with the game called “Counting 24”. Now it comes a problem that we want to know whether we can figure out the exact answer with given 4 numbers only using +,-,*,/ and (,).
?
Input
There are several cases in a test. Each case contains only 5 integers, a1, a2, a3, a4 and required answer. All integers are positive and no more than 100.
Output
If it is possible to figure out the required answer, output “Possible”; otherwise output “Impossible”.
Sample Input
?
5 5 1 5 24
?
Sample Output
?
Impossible
總結(jié)
以上是生活随笔為你收集整理的老BOJ 11 Counting的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 老BOJ 07 Fence Repair
- 下一篇: 老BOJ 13 K-based Numb