Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Incorrecto
|
0.001 s | 0 KBi |
#2 |
Incorrecto
|
0.005 s | 0 KBi |
#3 |
Incorrecto
|
0.004 s | 2 KBi |
#4 |
Incorrecto
|
0.004 s | 0 KBi |
#5 |
Correcto
|
0.001 s | 0 KBi |
#6 |
Correcto
|
0.004 s | 0 KBi |
#7 |
Correcto
|
0.001 s | 0 KBi |
#8 |
Incorrecto
|
0.001 s | 0 KBi |
#9 |
Incorrecto
|
0.002 s | 0 KBi |
#10 |
Correcto
|
0.005 s | 0 KBi |
#11 |
Incorrecto
|
0.005 s | 0 KBi |
#12 |
Incorrecto
|
0.006 s | 0 KBi |
#13 |
Incorrecto
|
0.006 s | 0 KBi |
#14 |
Incorrecto
|
0.005 s | 0 KBi |
#15 |
Incorrecto
|
0.001 s | 0 KBi |
#16 |
Incorrecto
|
0.003 s | 0 KBi |
#17 |
Incorrecto
|
0.005 s | 0 KBi |
#18 |
Incorrecto
|
0.001 s | 0 KBi |
#19 |
Incorrecto
|
0.001 s | 0 KBi |
#20 |
Incorrecto
|
0.004 s | 0 KBi |
#21 |
Correcto
|
0.005 s | 0 KBi |
#22 |
Incorrecto
|
0.005 s | 0 KBi |
#23 |
Incorrecto
|
0.005 s | 4 KBi |
#24 |
Incorrecto
|
0.001 s | 0 KBi |
#25 |
Incorrecto
|
0.001 s | 0 KBi |
#26 |
Incorrecto
|
0.004 s | 1 KBi |
#27 |
Incorrecto
|
0.007 s | 0 KBi |
#28 |
Incorrecto
|
0.007 s | 0 KBi |
#29 |
Incorrecto
|
0.006 s | 1 KBi |
#30 |
Incorrecto
|
0.005 s | 8 KBi |
#31 |
Incorrecto
|
0.006 s | 2 KBi |
#32 |
Incorrecto
|
0.005 s | 0 KBi |
#33 |
Incorrecto
|
0.005 s | 0 KBi |
#34 |
Incorrecto
|
0.001 s | 0 KBi |
#35 |
Incorrecto
|
0.004 s | 0 KBi |
#36 |
Incorrecto
|
0.005 s | 0 KBi |
#include<iostream> using namespace std; int main(){ int size, initial, final; cin>>size>>initial>>final; final -= initial; if (final % size > -final % size) cout<<-final % size; else cout<<final % size; }