3349 - I2P(I)2026_Lo_Hw2 Scoreboard

Time

2026/09/14 21:00:00 2026/09/21 18:00:00

Clarification

# Problem Asker Description Reply Replier Reply Time For all team

# Problem Pass Rate (passed user / total user)
14992 The Oracle's Altar
14993 The Lucky Draw

14992 - The Oracle's Altar   

Description

You approach an ancient, mystical altar that demands an offering number (n). The altar performs a sacred ritual based on the properties of your number before casting a divination:

The Transformation:

  • First, the altar normalizes your offering to keep it within bounds: n = n mod 15 (if the result is 0, it becomes 15).
    Example: n = 30.
                    Since 30 mod 15 is 0, then after normalization, n becomes 15.
  • Next, if your updated number n is even, it is doubled (n = n × 2). If it is odd, it it squared (n = n2).

The Prophecy: Once the final value is determined, it is read against sacred numerical ranges to reveal your destiny:

  • Range 1 (<= 50): "A shadow lingers near your path; proceed with caution."
  • Range 2 (51 to 150): "Fortune favors your bold steps today."
  • Range 3 (>150): "Great power brings unforeseen chaos; beware your ambitions."

Write a program to process the number and print the exact fortune message corresponding to the final value's range.

Input

The input consists of a single integer, n, representing your initial offering (1 <= n <= 100).

Output

Output the fortune message corresponding to the final calculated value's range.

Sample Input  Download

Sample Output  Download




Discuss




14993 - The Lucky Draw   

Description

You are playing a fast-paced number card game at a lively tavern. You draw two numbered cards, a and b. Each card contains an integer from 1 to 100. To win the pot, your hand must be considered lucky.

The dealer will declare your hand lucky if it satisfies either of these two rules:

  • The sum of the two cards a and b is a multiple of 10, and the first card is larger than the second.
  • The product of the two cards is less than 100, and the first card is greater than the second by more than 5.

Given the values of your two cards, write a program to determine if you have a winning hand.

Input

Two positive integers, a and b, provided on separate lines.

1 <= a, b <= 100

Output

If your hand satisfies at least one of the dealer's rules, print "Lucky!".

If you lose the round, print "Unlucky!".

Sample Input  Download

Sample Output  Download




Discuss