Warning: session_start(): open(/var/lib/php/sessions/sess_69ogg5p9ru6mqa9c8ape60vnmq, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
static int n = 1000000;
sS a = repeat('a', n) + repeat('b', n);
sS b = repeat('a', n+10) + repeat('b', n-10);
p {
for (int max = 0; max <= 20; max++)
test(max);
test(100);
test(1000);
test(10000);
test(100000);
test(1000000);
test(10000000);
test(100000000);
}
svoid test(int max) {
long startTime = sysNow();
System.out.println("max " + max + " => " + leven_limited_fixed(a, b, max));
System.out.println((sysNow()-startTime) + " ms");
}