This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package southworks.codingchallenge.task1; | |
public class Problem1 { | |
public static int[] solution(int[] A, int F, int M) { | |
int totalRolls = A.length + F; | |
int rollResultSum = 0; | |
for (int rollResult : A) { | |
rollResultSum += rollResult; | |
} | |
double aux = M - (double) rollResultSum / (double) totalRolls; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
group: Caso6 | |
Pers = { | |
dni:number, telp:number, mail:string | |
1, 10, 1.com | |
2, 20, 2.com | |
3, 30, 3.com | |
4, 40, 4.com | |
5,50,5.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
group: Recargas y viajes tarjeta SUBE | |
Tar = { | |
num:number, monto:number, dni:number, nombre:string, prov:string | |
001 , 100 , 39026 , 'Guille' , 'San Juan' | |
002 , 150 , 39027 , 'Franco' , 'San Juan' | |
003 , 75 , 40028 , 'Luis' , 'San Luis' | |
004 , 150 , 40029 , 'Martin' , 'Mendoza' | |
005 , 150 , 40402 , 'Eusebio' , 'San Juan' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
group: Recargas y viajes tarjeta SUBE | |
Tar = { | |
num:number, monto:number, dni:number, nombre:string, prov:string | |
001 , 100 , 39026 , 'Guille' , 'San Juan' | |
002 , 150 , 39027 , 'Franco' , 'San Juan' | |
003 , 75 , 40028 , 'Luis' , 'San Luis' | |
004 , 150 , 40029 , 'Martin' , 'Mendoza' | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- éste es un ejemplo | |
group: AccidentesdeTransito | |
COMPSEG = { | |
cuit:number, nomC:string, domi:string, tel:number | |
20 , 'segA' , 'pocito' , 155 | |
21 , 'segB' , 'rivadavia', 156 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- éste es un ejemplo | |
group: AccidentesdeTransito | |
COMPSEG = { | |
cuit:number, nomC:string, domi:string, tel:number | |
20 , 'segA' , 'pocito' , 155 | |
21 , 'segB' , 'rivadavia', 156 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- éste es un ejemplo | |
group: AccidentesdeTransito | |
COMPSEG = { | |
cuit:number, nomC:string, domi:string, tel:number | |
20 , 'segA' , 'pocito' , 155 | |
21 , 'segB' , 'rivadavia', 156 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- éste es un ejemplo | |
group: Caso4 | |
COMPSEG = { | |
cuit:number, nomC:string, domi:string, tel:number | |
20 , 'segA' , 'pocito' , 155 | |
21 , 'segB' , 'rivadavia', 156 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- éste es un ejemplo | |
group: Caso6 | |
Pers = { | |
dni:number, telp:number, mail:string | |
1, 10, 1.com | |
2, 20, 2.com | |
3, 30, 3.com |