Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Incorrecto
|
0.027 s | 3 KBi |
#2 |
Correcto
|
0.031 s | 4 KBi |
#3 |
Incorrecto
|
0.028 s | 3 KBi |
#4 |
Incorrecto
|
0.037 s | 5 KBi |
#5 |
Incorrecto
|
0.033 s | 3 KBi |
#6 |
Incorrecto
|
0.035 s | 3 KBi |
#7 |
Incorrecto
|
0.031 s | 4 KBi |
#8 |
Incorrecto
|
0.036 s | 5 KBi |
#9 |
Correcto
|
0.026 s | 3 KBi |
#10 |
Incorrecto
|
0.031 s | 3 KBi |
#11 |
Incorrecto
|
0.038 s | 12 KBi |
#12 |
Correcto
|
0.027 s | 3 KBi |
#13 |
Incorrecto
|
0.036 s | 4 KBi |
#14 |
Incorrecto
|
0.037 s | 3 KBi |
#15 |
Incorrecto
|
0.03 s | 3 KBi |
#16 |
Incorrecto
|
0.032 s | 3 KBi |
#17 |
Incorrecto
|
0.031 s | 3 KBi |
#18 |
Correcto
|
0.032 s | 19 KBi |
#19 |
Incorrecto
|
0.031 s | 3 KBi |
#20 |
Correcto
|
0.027 s | 4 KBi |
#21 |
Incorrecto
|
0.031 s | 5 KBi |
#22 |
Incorrecto
|
0.035 s | 3 KBi |
#23 |
Incorrecto
|
0.037 s | 4 KBi |
#24 |
Incorrecto
|
0.033 s | 3 KBi |
#25 |
Incorrecto
|
0.037 s | 3 KBi |
#26 |
Correcto
|
0.03 s | 3 KBi |
#27 |
Incorrecto
|
0.036 s | 3 KBi |
#28 |
Incorrecto
|
0.03 s | 6 KBi |
#29 |
Incorrecto
|
0.028 s | 5 KBi |
#30 |
Incorrecto
|
0.036 s | 3 KBi |
#31 |
Incorrecto
|
0.032 s | 3 KBi |
#32 |
Incorrecto
|
0.029 s | 3 KBi |
#33 |
Incorrecto
|
0.031 s | 3 KBi |
#34 |
Incorrecto
|
0.034 s | 3 KBi |
#35 |
Incorrecto
|
0.03 s | 3 KBi |
#36 |
Incorrecto
|
0.037 s | 3 KBi |
using System; namespace test { class Program { static void Main(string[] args) { var input = Console.ReadLine(); var opts = input.Split(' '); var n = Int32.Parse(opts[0]); var x = Int32.Parse(opts[1]); var y = Int32.Parse(opts[2]); var maximum = Math.Max(Math.Abs(y-x+n),y-x); Console.WriteLine(maximum); } } }