This file contains hidden or 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
#include <stdio.h> | |
#include <math.h> | |
#include <time.h> | |
int | |
main(int argc, char* argv[]) { | |
clock_t t; | |
int i; | |
double f, abs; |
This file contains hidden or 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
#include <stdio.h> | |
static int plus(int a, int b); | |
static int _c_plus(int a); | |
static int (*c_plus(int a))(int); | |
static int __a; | |
int | |
main(int argc, char* argv[]) { |
This file contains hidden or 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
use strict; | |
use warnings; | |
use utf8; | |
my $foo = 1; | |
my $bar = ++$foo + $foo++; | |
print "bar => " . $bar . "\n"; | |
$foo = 1; | |
++$foo; |
This file contains hidden or 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
#include <time.h> | |
int | |
main(int argc, char* argv[]) { | |
clock_t t; | |
int i, n, n5; | |
double f; |
This file contains hidden or 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
#include <stdio.h> | |
int | |
main(int argc, char* argv[]) { | |
int i, n; | |
n = 10000000; | |
for (i = 0; i < n; ++i) { | |
} |
This file contains hidden or 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
#include <stdio.h> | |
#include <time.h> | |
int | |
main(int argc, char* argv[]) { | |
clock_t t; | |
int i, n, n10, c; | |
n = 100000007; | |
t = clock(); |
This file contains hidden or 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <time.h> | |
int | |
main(int argc, char* argv[]) { | |
clock_t t; | |
int i, n; | |
double *x, *y; |
This file contains hidden or 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
#include <stdio.h> | |
double | |
integrate(double a, double b, double (*f)(double)) { | |
int i, n = 10000; | |
double area = 0., d = (b - a) / n; | |
for (i = 0; i < n; ++i) { | |
area += f(a + i * d) * d; | |
} | |
return area; |
This file contains hidden or 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
#include <stdio.h> | |
#include <time.h> | |
int | |
main(int argc, char* argv[]) { | |
int i, n, n5; | |
unsigned int mem_size; | |
double dot, *x, *y; | |
clock_t t; |
This file contains hidden or 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
#include <stdio.h> | |
#include <time.h> | |
int | |
main(int argc, char* argv[]) { | |
int i, m, n, iter, count; | |
double a, b, c; | |
clock_t t, t1, t2; | |
m = 100; | |
n = 1000000; |