Hide

Problem B
Helmingunarveldisvísun

Accepted submissions to this problem will be granted a score of 10
Languages en is

Þú færð gefnar ekki neikvæðar heiltölur a,e,m og átt að prenta stærsta ae(modm).

Inntak

Fyrsta og eina lína inntaksins inniheldur ekki neikvæðar heiltölur a,e,m1018, aðskilin með bili. Einnig er gefið að m2.

Úttak

Prentið ae(modm).

Sample Input 1 Sample Output 1
15 7 99
27
Hide

Please log in to submit a solution to this problem

Log in