42 lines
656 B
Java
42 lines
656 B
Java
public class TestMalicious {
|
|
public int assignNegativeIncrement(int n)
|
|
{
|
|
return n=-++n+1;
|
|
}
|
|
|
|
public int tripleAddition(int a, int b, int c)
|
|
{
|
|
return a+++b+++c++;
|
|
}
|
|
|
|
public int cursedFormatting(int n)
|
|
{
|
|
if
|
|
|
|
|
|
(n == 0)
|
|
|
|
{
|
|
|
|
return ((((0))));
|
|
}
|
|
|
|
else
|
|
|
|
|
|
if(n ==
|
|
|
|
1)
|
|
{
|
|
return
|
|
|
|
|
|
1;
|
|
}else {
|
|
return
|
|
2
|
|
;
|
|
}
|
|
}
|
|
}
|