#P8928. 「TERRA-OI R1」你不是神,但你的灵魂依然是我的盛宴
「TERRA-OI R1」你不是神,但你的灵魂依然是我的盛宴
Background
Standing on this wooden platform, it creaks and cracks. You take out all kinds of potions from your bag and drink them one by one. A warm feeling rises from the bottom of your heart. You take out the carefully prepared bait, which is condensed from the essence of three servants. You raise it high above your head, trying to lure out the god-eater. The sky begins to fill with a bluish-purple mist. This atmosphere presses on you until you can hardly breathe. In a daze, the space in front of you starts to tear open into a crack. A giant python covered in a purple shell crawls out of it. You pick up the greatsword in your hand. Listening to roar after roar, you know this will be a hard fight...
Problem Description
Please compute the value of:
where are given.
Input Format
One line with three positive integers separated by spaces, as described in the statement.
Output Format
Output one integer, the answer. Since the result may be very large, output it modulo .
3 3 10
36
114514 1919810 233
696303234
Hint
[Sample Explanation #1]
It is obvious that only has the following cases: . The sum of these values is .
[Constraints]
This problem uses bundled testdata.
| Subtask | Score | |
|---|---|---|
For of the testdata, , .
Translated by ChatGPT 5