No tags yet

No tag edit access

Time limit per test: 1 second(s)

Memory limit: 262144 kilobytes

Memory limit: 262144 kilobytes

input: standard

output: standard

output: standard

Polycarp loves not only to play games, but to invent ones as well. He has recently been presented with a board game which also had lots of dice. Polycarp quickly noticed an interesting phenomenon: the sum of dots on any two opposite sides equals 7.

The dice

An unfolded die

An example of a tower whose height equals 3

Write a program that would determine the minimum number of dice in the required tower by the given number

-1.

sample input | sample output |

50 | 3 |

sample input | sample output |

7 | -1 |

sample input | sample output |

32 | 2 |

Codeforces (c) Copyright 2010-2019 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: Oct/14/2019 12:25:49 (e1).

Desktop version, switch to mobile version.

Supported by

User lists

Name |
---|