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
[ui] | |
username=<coloque aqui o nome de seu usuário do mercurial> | |
merge=meld | |
[extensions] | |
mq= | |
color= | |
purge= | |
hgext.extdiff= | |
[extdiff] | |
cmd.meld= |
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
//importa biblioteca JUnit para testes | |
import junit.framework.TestCase; | |
public class Dojo extends TestCase { | |
public static String zero = " _ \n| |\n|_|"; | |
public static String um = " \n | \n | "; | |
public static String dois = " _ \n _|\n|_ "; | |
public static String tres = " _ \n _|\n _|"; | |
//****metodo**** |
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
import junit.framework.TestCase; | |
public class Dojo extends TestCase { | |
int roletaRomana(int n, int p, int i) { | |
if (p > 1 && (n==2 || n== 2*p || n==9 || n==4)) return i; | |
if (p==1 && i!=1) return i-1; | |
return n; | |
} | |
//****testes**** |
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
import junit.framework.TestCase; | |
public class Dojo extends TestCase { | |
//****metodo para resolver o problema**** | |
int roletaRomana(int p, int i) { | |
if (p==8) | |
return (i+6)%p; | |
return (i+1)%p; | |
} |
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
import junit.framework.TestCase; | |
public class Dojo extends TestCase { | |
String burguerKing(int caixa1, int caixa2, int drive) { | |
if((caixa1+1)*5+5 >= (caixa2+1)*5+5){ | |
if((caixa2+1)*5+5 >= (drive+1)*3 ){ | |
return "drive"; | |
}else | |
{ |
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
import junit.framework.TestCase; | |
public class Dojo extends TestCase { | |
//****metodo para resolver o problema**** | |
String convDecRoman(int decimal) { | |
String roman = ""; | |
if (decimal == 9){ | |
roman = "IX"; | |
} | |
if(decimal <=8 && decimal>=5){ |
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
import junit.framework.TestCase; | |
public class Dojo extends TestCase { | |
int fizzBuzz(int valor) { | |
if(valor%3==0){ | |
valor = valor/3; | |
} | |
if(valor%5==0){ |
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
import junit.framework.TestCase; | |
public class Dojo extends TestCase { | |
int fizzBuzz(int valor) { | |
if(valor==3||valor==5){ | |
return 1; | |
} | |
return valor; |
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
import junit.framework.TestCase; | |
public class Dojo extends TestCase { | |
String fizzbuzz(int entrada) { | |
if(entrada == 3){ | |
return "fizz"; | |
} | |
return ""+entrada; | |
} |
NewerOlder