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 java.util.BitSet; | |
public class Question4882568 { | |
static boolean [] [] played; | |
static int count; | |
static int n; | |
public static void main (String [] args) { | |
for (n = 2;;n += 2) { | |
count = 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
public class Question4859023 { | |
final static long ntrials = 100000000L; | |
public static void main(String [] args) { | |
long count = 0; | |
for (long n = 0;n < ntrials;n++) { | |
double x1 = 5 * Math.random(); | |
double x2 = 5 * Math.random(); | |
double y1 = 5 * Math.random(); |
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 java.util.HashMap; | |
import java.util.Map; | |
public class Question4849448 { | |
final static int d = 8; | |
final static int n = d * d; | |
static long [] moves = new long [n]; | |
static long [] [] transformedMoves = new long [n] [8]; | |
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
public class Question4840933 { | |
final static long ntrials = 2000000; | |
public static void main(String [] args) { | |
double [] [] x = new double [3] [3]; | |
double [] c = new double [3]; | |
long count = 0; | |
for (long n = 0;n < ntrials;n++) { |
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 java.io.BufferedReader; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.math.BigInteger; | |
public class OEISScanner { | |
public static void main (String [] args) throws IOException { | |
// OEIS sequence data downloaded from https://oeis.org/stripped.gz | |
BufferedReader reader = new BufferedReader (new FileReader (args [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
package info.joriki.math.stackexchange; | |
public class Question4636935 { | |
final static int ntrials = 10000; | |
public static void main(String [] args) { | |
int count = 0; | |
int total = 0; | |
for (int n = 0;n < ntrials;n++) { | |
int nblack = 1; |
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 java.util.Arrays; | |
import java.util.Random; | |
public class Question4631555 { | |
final static int l = 4; | |
final static int n = (l * (l - 1)) / 2; | |
final static Random random = new Random(); | |
public static void main(String [] args) { |
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 info.joriki.math.stackexchange; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
import info.joriki.math.algebra.BigRational; | |
public class Question4629747 { |
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 java.util.Random; | |
public class Question4624075 { | |
final static int k = 34; | |
final static int n = 10; | |
final static int m = 1 << n; | |
final static int nvalues = (k * (k + 1)) / 2; | |
final static Random random = new Random(); |
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 java.util.Random; | |
public class Question4622699 { | |
final static int nrounds = 7; | |
final static int ntables = 5; | |
final static int nchairs = 4; | |
final static int npeople = ntables * nchairs; | |
final static Random random = new Random(); | |
NewerOlder