id
int64
1
38.2k
name
stringclasses
650 values
C
stringclasses
619 values
C#
stringclasses
636 values
C++
stringclasses
577 values
Go
stringclasses
614 values
Java
stringclasses
575 values
Python
stringclasses
637 values
VB
stringclasses
460 values
PHP
stringclasses
252 values
messages
listlengths
2
2
1
Julia set
#include<graphics.h> #include<stdlib.h> #include<math.h> typedef struct{ double x,y; }complex; complex add(complex a,complex b){ complex c; c.x = a.x + b.x; c.y = a.y + b.y; return c; } complex sqr(complex a){ complex c; c.x = a.x*a.x - a.y*a.y; c.y = 2*a.x*a.y; return c; } double mod(complex a){ return s...
using System.Drawing; using System.Linq; namespace RosettaJuliaSet { class Program { static void Main(string[] args) { const int w = 800; const int h = 600; const int zoom = 1; const int maxiter = 255; const int moveX = 0; ...
null
null
null
null
null
null
[ { "role": "user", "content": "#include<graphics.h>\n#include<stdlib.h>\n#include<math.h>\n\ntypedef struct{\n\tdouble x,y;\n}complex;\n\ncomplex add(complex a,complex b){\n\tcomplex c;\n\tc.x = a.x + b.x;\n\tc.y = a.y + b.y;\n\treturn c;\n}\n\ncomplex sqr(complex a){\n\tcomplex c;\n\tc.x = a.x*a.x - a.y*a.y...
2
Julia set
#include<graphics.h> #include<stdlib.h> #include<math.h> typedef struct{ double x,y; }complex; complex add(complex a,complex b){ complex c; c.x = a.x + b.x; c.y = a.y + b.y; return c; } complex sqr(complex a){ complex c; c.x = a.x*a.x - a.y*a.y; c.y = 2*a.x*a.y; return c; } double mod(complex a){ return s...
using System.Drawing; using System.Linq; namespace RosettaJuliaSet { class Program { static void Main(string[] args) { const int w = 800; const int h = 600; const int zoom = 1; const int maxiter = 255; const int moveX = 0; ...
null
null
null
null
null
null
[ { "role": "user", "content": "#include<graphics.h>\n#include<stdlib.h>\n#include<math.h>\n\ntypedef struct{\n\tdouble x,y;\n}complex;\n\ncomplex add(complex a,complex b){\n\tcomplex c;\n\tc.x = a.x + b.x;\n\tc.y = a.y + b.y;\n\treturn c;\n}\n\ncomplex sqr(complex a){\n\tcomplex c;\n\tc.x = a.x*a.x - a.y*a.y...
3
Julia set
#include<graphics.h> #include<stdlib.h> #include<math.h> typedef struct{ double x,y; }complex; complex add(complex a,complex b){ complex c; c.x = a.x + b.x; c.y = a.y + b.y; return c; } complex sqr(complex a){ complex c; c.x = a.x*a.x - a.y*a.y; c.y = 2*a.x*a.y; return c; } double mod(complex a){ return s...
null
#include <windows.h> #include <string> #include <complex> const int BMP_SIZE = 600, ITERATIONS = 512; const long double FCT = 2.85, hFCT = FCT / 2.0; class myBitmap { public: myBitmap() : pen( NULL ), brush( NULL ), clr( 0 ), wid( 1 ) {} ~myBitmap() { DeleteObject( pen ); DeleteObject( brush ); ...
null
null
null
null
null
[ { "role": "user", "content": "#include<graphics.h>\n#include<stdlib.h>\n#include<math.h>\n\ntypedef struct{\n\tdouble x,y;\n}complex;\n\ncomplex add(complex a,complex b){\n\tcomplex c;\n\tc.x = a.x + b.x;\n\tc.y = a.y + b.y;\n\treturn c;\n}\n\ncomplex sqr(complex a){\n\tcomplex c;\n\tc.x = a.x*a.x - a.y*a.y...
4
Julia set
#include<graphics.h> #include<stdlib.h> #include<math.h> typedef struct{ double x,y; }complex; complex add(complex a,complex b){ complex c; c.x = a.x + b.x; c.y = a.y + b.y; return c; } complex sqr(complex a){ complex c; c.x = a.x*a.x - a.y*a.y; c.y = 2*a.x*a.y; return c; } double mod(complex a){ return s...
null
null
package main import ( "image" "image/color" "image/png" "log" "os" "sync" ) func main() { const ( width, height = 800.0, 600.0 maxIter = 255 cX, cY = -0.7, 0.27015 fileName = "julia.png" ) img := image.NewNRGBA(image.Rect(0, 0, width, height)) var wg sync.WaitGroup wg.Add(width) ...
null
null
null
null
[ { "role": "user", "content": "#include<graphics.h>\n#include<stdlib.h>\n#include<math.h>\n\ntypedef struct{\n\tdouble x,y;\n}complex;\n\ncomplex add(complex a,complex b){\n\tcomplex c;\n\tc.x = a.x + b.x;\n\tc.y = a.y + b.y;\n\treturn c;\n}\n\ncomplex sqr(complex a){\n\tcomplex c;\n\tc.x = a.x*a.x - a.y*a.y...
5
Julia set
#include<graphics.h> #include<stdlib.h> #include<math.h> typedef struct{ double x,y; }complex; complex add(complex a,complex b){ complex c; c.x = a.x + b.x; c.y = a.y + b.y; return c; } complex sqr(complex a){ complex c; c.x = a.x*a.x - a.y*a.y; c.y = 2*a.x*a.y; return c; } double mod(complex a){ return s...
null
null
package main import ( "image" "image/color" "image/png" "log" "os" "sync" ) func main() { const ( width, height = 800.0, 600.0 maxIter = 255 cX, cY = -0.7, 0.27015 fileName = "julia.png" ) img := image.NewNRGBA(image.Rect(0, 0, width, height)) var wg sync.WaitGroup wg.Add(width) ...
null
null
null
null
[ { "role": "user", "content": "#include<graphics.h>\n#include<stdlib.h>\n#include<math.h>\n\ntypedef struct{\n\tdouble x,y;\n}complex;\n\ncomplex add(complex a,complex b){\n\tcomplex c;\n\tc.x = a.x + b.x;\n\tc.y = a.y + b.y;\n\treturn c;\n}\n\ncomplex sqr(complex a){\n\tcomplex c;\n\tc.x = a.x*a.x - a.y*a.y...
6
Julia set
#include<graphics.h> #include<stdlib.h> #include<math.h> typedef struct{ double x,y; }complex; complex add(complex a,complex b){ complex c; c.x = a.x + b.x; c.y = a.y + b.y; return c; } complex sqr(complex a){ complex c; c.x = a.x*a.x - a.y*a.y; c.y = 2*a.x*a.y; return c; } double mod(complex a){ return s...
null
null
null
import javax.swing.*; import java.awt.*; import java.awt.image.BufferedImage; public class JuliaSet extends JPanel { private static final int MAX_ITERATIONS = 300; private static final double ZOOM = 1; private static final double CX = -0.7; private static final double CY = 0.27015; private static f...
null
null
null
[ { "role": "user", "content": "#include<graphics.h>\n#include<stdlib.h>\n#include<math.h>\n\ntypedef struct{\n\tdouble x,y;\n}complex;\n\ncomplex add(complex a,complex b){\n\tcomplex c;\n\tc.x = a.x + b.x;\n\tc.y = a.y + b.y;\n\treturn c;\n}\n\ncomplex sqr(complex a){\n\tcomplex c;\n\tc.x = a.x*a.x - a.y*a.y...
7
Julia set
#include<graphics.h> #include<stdlib.h> #include<math.h> typedef struct{ double x,y; }complex; complex add(complex a,complex b){ complex c; c.x = a.x + b.x; c.y = a.y + b.y; return c; } complex sqr(complex a){ complex c; c.x = a.x*a.x - a.y*a.y; c.y = 2*a.x*a.y; return c; } double mod(complex a){ return s...
null
null
null
import javax.swing.*; import java.awt.*; import java.awt.image.BufferedImage; public class JuliaSet extends JPanel { private static final int MAX_ITERATIONS = 300; private static final double ZOOM = 1; private static final double CX = -0.7; private static final double CY = 0.27015; private static f...
null
null
null
[ { "role": "user", "content": "#include<graphics.h>\n#include<stdlib.h>\n#include<math.h>\n\ntypedef struct{\n\tdouble x,y;\n}complex;\n\ncomplex add(complex a,complex b){\n\tcomplex c;\n\tc.x = a.x + b.x;\n\tc.y = a.y + b.y;\n\treturn c;\n}\n\ncomplex sqr(complex a){\n\tcomplex c;\n\tc.x = a.x*a.x - a.y*a.y...
8
Julia set
#include<graphics.h> #include<stdlib.h> #include<math.h> typedef struct{ double x,y; }complex; complex add(complex a,complex b){ complex c; c.x = a.x + b.x; c.y = a.y + b.y; return c; } complex sqr(complex a){ complex c; c.x = a.x*a.x - a.y*a.y; c.y = 2*a.x*a.y; return c; } double mod(complex a){ return s...
null
null
null
null
from __future__ import division cX = -0.7 cY = 0.27015 maxIter = 300 def setup(): size(640, 480) def draw(): for x in range(width): for y in range(height): zx = 1.5 * (x - width / 2) / (0.5 * width) zy = (y - height / 2) / (0.5 * height) i = maxIter whi...
null
null
[ { "role": "user", "content": "#include<graphics.h>\n#include<stdlib.h>\n#include<math.h>\n\ntypedef struct{\n\tdouble x,y;\n}complex;\n\ncomplex add(complex a,complex b){\n\tcomplex c;\n\tc.x = a.x + b.x;\n\tc.y = a.y + b.y;\n\treturn c;\n}\n\ncomplex sqr(complex a){\n\tcomplex c;\n\tc.x = a.x*a.x - a.y*a.y...
9
Julia set
#include<graphics.h> #include<stdlib.h> #include<math.h> typedef struct{ double x,y; }complex; complex add(complex a,complex b){ complex c; c.x = a.x + b.x; c.y = a.y + b.y; return c; } complex sqr(complex a){ complex c; c.x = a.x*a.x - a.y*a.y; c.y = 2*a.x*a.y; return c; } double mod(complex a){ return s...
null
null
null
null
from __future__ import division cX = -0.7 cY = 0.27015 maxIter = 300 def setup(): size(640, 480) def draw(): for x in range(width): for y in range(height): zx = 1.5 * (x - width / 2) / (0.5 * width) zy = (y - height / 2) / (0.5 * height) i = maxIter whi...
null
null
[ { "role": "user", "content": "#include<graphics.h>\n#include<stdlib.h>\n#include<math.h>\n\ntypedef struct{\n\tdouble x,y;\n}complex;\n\ncomplex add(complex a,complex b){\n\tcomplex c;\n\tc.x = a.x + b.x;\n\tc.y = a.y + b.y;\n\treturn c;\n}\n\ncomplex sqr(complex a){\n\tcomplex c;\n\tc.x = a.x*a.x - a.y*a.y...
10
Julia set
#include<graphics.h> #include<stdlib.h> #include<math.h> typedef struct{ double x,y; }complex; complex add(complex a,complex b){ complex c; c.x = a.x + b.x; c.y = a.y + b.y; return c; } complex sqr(complex a){ complex c; c.x = a.x*a.x - a.y*a.y; c.y = 2*a.x*a.y; return c; } double mod(complex a){ return s...
null
null
null
null
null
cmap=array(" ", ".", ":", "-", "=", "+", "*", "#", "%", "$", "@" ) for y = -1.0 to 1.0 step 0.05 for x = -1.5 to 1.5 step 0.025 zr=x zi=y i=0 do while i < 100 zr1 = zr*zr - zi*zi - 0.79 zi=zr * zi * 2 + 0.15 zr=zr1 if (zr*zr + zi*zi) > 4. then exit do i = i + 1 ...
null
[ { "role": "user", "content": "#include<graphics.h>\n#include<stdlib.h>\n#include<math.h>\n\ntypedef struct{\n\tdouble x,y;\n}complex;\n\ncomplex add(complex a,complex b){\n\tcomplex c;\n\tc.x = a.x + b.x;\n\tc.y = a.y + b.y;\n\treturn c;\n}\n\ncomplex sqr(complex a){\n\tcomplex c;\n\tc.x = a.x*a.x - a.y*a.y...
11
Julia set
#include<graphics.h> #include<stdlib.h> #include<math.h> typedef struct{ double x,y; }complex; complex add(complex a,complex b){ complex c; c.x = a.x + b.x; c.y = a.y + b.y; return c; } complex sqr(complex a){ complex c; c.x = a.x*a.x - a.y*a.y; c.y = 2*a.x*a.y; return c; } double mod(complex a){ return s...
null
null
null
null
null
cmap=array(" ", ".", ":", "-", "=", "+", "*", "#", "%", "$", "@" ) for y = -1.0 to 1.0 step 0.05 for x = -1.5 to 1.5 step 0.025 zr=x zi=y i=0 do while i < 100 zr1 = zr*zr - zi*zi - 0.79 zi=zr * zi * 2 + 0.15 zr=zr1 if (zr*zr + zi*zi) > 4. then exit do i = i + 1 ...
null
[ { "role": "user", "content": "#include<graphics.h>\n#include<stdlib.h>\n#include<math.h>\n\ntypedef struct{\n\tdouble x,y;\n}complex;\n\ncomplex add(complex a,complex b){\n\tcomplex c;\n\tc.x = a.x + b.x;\n\tc.y = a.y + b.y;\n\treturn c;\n}\n\ncomplex sqr(complex a){\n\tcomplex c;\n\tc.x = a.x*a.x - a.y*a.y...
12
Julia set
null
using System.Drawing; using System.Linq; namespace RosettaJuliaSet { class Program { static void Main(string[] args) { const int w = 800; const int h = 600; const int zoom = 1; const int maxiter = 255; const int moveX = 0; ...
#include <windows.h> #include <string> #include <complex> const int BMP_SIZE = 600, ITERATIONS = 512; const long double FCT = 2.85, hFCT = FCT / 2.0; class myBitmap { public: myBitmap() : pen( NULL ), brush( NULL ), clr( 0 ), wid( 1 ) {} ~myBitmap() { DeleteObject( pen ); DeleteObject( brush ); ...
null
null
null
null
null
[ { "role": "user", "content": "using System.Drawing;\n\n\n\nusing System.Linq;\n\nnamespace RosettaJuliaSet\n{\n class Program\n {\n static void Main(string[] args)\n {\n const int w = 800;\n const int h = 600;\n const int zoom = 1;\n const int ...
13
Julia set
null
using System.Drawing; using System.Linq; namespace RosettaJuliaSet { class Program { static void Main(string[] args) { const int w = 800; const int h = 600; const int zoom = 1; const int maxiter = 255; const int moveX = 0; ...
#include <windows.h> #include <string> #include <complex> const int BMP_SIZE = 600, ITERATIONS = 512; const long double FCT = 2.85, hFCT = FCT / 2.0; class myBitmap { public: myBitmap() : pen( NULL ), brush( NULL ), clr( 0 ), wid( 1 ) {} ~myBitmap() { DeleteObject( pen ); DeleteObject( brush ); ...
null
null
null
null
null
[ { "role": "user", "content": "using System.Drawing;\n\n\n\nusing System.Linq;\n\nnamespace RosettaJuliaSet\n{\n class Program\n {\n static void Main(string[] args)\n {\n const int w = 800;\n const int h = 600;\n const int zoom = 1;\n const int ...
14
Julia set
null
null
#include <windows.h> #include <string> #include <complex> const int BMP_SIZE = 600, ITERATIONS = 512; const long double FCT = 2.85, hFCT = FCT / 2.0; class myBitmap { public: myBitmap() : pen( NULL ), brush( NULL ), clr( 0 ), wid( 1 ) {} ~myBitmap() { DeleteObject( pen ); DeleteObject( brush ); ...
package main import ( "image" "image/color" "image/png" "log" "os" "sync" ) func main() { const ( width, height = 800.0, 600.0 maxIter = 255 cX, cY = -0.7, 0.27015 fileName = "julia.png" ) img := image.NewNRGBA(image.Rect(0, 0, width, height)) var wg sync.WaitGroup wg.Add(width) ...
null
null
null
null
[ { "role": "user", "content": "#include <windows.h>\n#include <string>\n#include <complex>\n\nconst int BMP_SIZE = 600, ITERATIONS = 512;\nconst long double FCT = 2.85, hFCT = FCT / 2.0;\n\nclass myBitmap {\npublic:\n myBitmap() : pen( NULL ), brush( NULL ), clr( 0 ), wid( 1 ) {}\n ~myBitmap() {\n ...
15
Julia set
null
null
#include <windows.h> #include <string> #include <complex> const int BMP_SIZE = 600, ITERATIONS = 512; const long double FCT = 2.85, hFCT = FCT / 2.0; class myBitmap { public: myBitmap() : pen( NULL ), brush( NULL ), clr( 0 ), wid( 1 ) {} ~myBitmap() { DeleteObject( pen ); DeleteObject( brush ); ...
package main import ( "image" "image/color" "image/png" "log" "os" "sync" ) func main() { const ( width, height = 800.0, 600.0 maxIter = 255 cX, cY = -0.7, 0.27015 fileName = "julia.png" ) img := image.NewNRGBA(image.Rect(0, 0, width, height)) var wg sync.WaitGroup wg.Add(width) ...
null
null
null
null
[ { "role": "user", "content": "#include <windows.h>\n#include <string>\n#include <complex>\n\nconst int BMP_SIZE = 600, ITERATIONS = 512;\nconst long double FCT = 2.85, hFCT = FCT / 2.0;\n\nclass myBitmap {\npublic:\n myBitmap() : pen( NULL ), brush( NULL ), clr( 0 ), wid( 1 ) {}\n ~myBitmap() {\n ...
16
Julia set
null
null
#include <windows.h> #include <string> #include <complex> const int BMP_SIZE = 600, ITERATIONS = 512; const long double FCT = 2.85, hFCT = FCT / 2.0; class myBitmap { public: myBitmap() : pen( NULL ), brush( NULL ), clr( 0 ), wid( 1 ) {} ~myBitmap() { DeleteObject( pen ); DeleteObject( brush ); ...
null
import javax.swing.*; import java.awt.*; import java.awt.image.BufferedImage; public class JuliaSet extends JPanel { private static final int MAX_ITERATIONS = 300; private static final double ZOOM = 1; private static final double CX = -0.7; private static final double CY = 0.27015; private static f...
null
null
null
[ { "role": "user", "content": "#include <windows.h>\n#include <string>\n#include <complex>\n\nconst int BMP_SIZE = 600, ITERATIONS = 512;\nconst long double FCT = 2.85, hFCT = FCT / 2.0;\n\nclass myBitmap {\npublic:\n myBitmap() : pen( NULL ), brush( NULL ), clr( 0 ), wid( 1 ) {}\n ~myBitmap() {\n ...
17
Julia set
null
null
#include <windows.h> #include <string> #include <complex> const int BMP_SIZE = 600, ITERATIONS = 512; const long double FCT = 2.85, hFCT = FCT / 2.0; class myBitmap { public: myBitmap() : pen( NULL ), brush( NULL ), clr( 0 ), wid( 1 ) {} ~myBitmap() { DeleteObject( pen ); DeleteObject( brush ); ...
null
import javax.swing.*; import java.awt.*; import java.awt.image.BufferedImage; public class JuliaSet extends JPanel { private static final int MAX_ITERATIONS = 300; private static final double ZOOM = 1; private static final double CX = -0.7; private static final double CY = 0.27015; private static f...
null
null
null
[ { "role": "user", "content": "#include <windows.h>\n#include <string>\n#include <complex>\n\nconst int BMP_SIZE = 600, ITERATIONS = 512;\nconst long double FCT = 2.85, hFCT = FCT / 2.0;\n\nclass myBitmap {\npublic:\n myBitmap() : pen( NULL ), brush( NULL ), clr( 0 ), wid( 1 ) {}\n ~myBitmap() {\n ...
18
Julia set
null
null
#include <windows.h> #include <string> #include <complex> const int BMP_SIZE = 600, ITERATIONS = 512; const long double FCT = 2.85, hFCT = FCT / 2.0; class myBitmap { public: myBitmap() : pen( NULL ), brush( NULL ), clr( 0 ), wid( 1 ) {} ~myBitmap() { DeleteObject( pen ); DeleteObject( brush ); ...
null
null
from __future__ import division cX = -0.7 cY = 0.27015 maxIter = 300 def setup(): size(640, 480) def draw(): for x in range(width): for y in range(height): zx = 1.5 * (x - width / 2) / (0.5 * width) zy = (y - height / 2) / (0.5 * height) i = maxIter whi...
null
null
[ { "role": "user", "content": "#include <windows.h>\n#include <string>\n#include <complex>\n\nconst int BMP_SIZE = 600, ITERATIONS = 512;\nconst long double FCT = 2.85, hFCT = FCT / 2.0;\n\nclass myBitmap {\npublic:\n myBitmap() : pen( NULL ), brush( NULL ), clr( 0 ), wid( 1 ) {}\n ~myBitmap() {\n ...
19
Julia set
null
null
#include <windows.h> #include <string> #include <complex> const int BMP_SIZE = 600, ITERATIONS = 512; const long double FCT = 2.85, hFCT = FCT / 2.0; class myBitmap { public: myBitmap() : pen( NULL ), brush( NULL ), clr( 0 ), wid( 1 ) {} ~myBitmap() { DeleteObject( pen ); DeleteObject( brush ); ...
null
null
from __future__ import division cX = -0.7 cY = 0.27015 maxIter = 300 def setup(): size(640, 480) def draw(): for x in range(width): for y in range(height): zx = 1.5 * (x - width / 2) / (0.5 * width) zy = (y - height / 2) / (0.5 * height) i = maxIter whi...
null
null
[ { "role": "user", "content": "#include <windows.h>\n#include <string>\n#include <complex>\n\nconst int BMP_SIZE = 600, ITERATIONS = 512;\nconst long double FCT = 2.85, hFCT = FCT / 2.0;\n\nclass myBitmap {\npublic:\n myBitmap() : pen( NULL ), brush( NULL ), clr( 0 ), wid( 1 ) {}\n ~myBitmap() {\n ...
20
Julia set
null
null
#include <windows.h> #include <string> #include <complex> const int BMP_SIZE = 600, ITERATIONS = 512; const long double FCT = 2.85, hFCT = FCT / 2.0; class myBitmap { public: myBitmap() : pen( NULL ), brush( NULL ), clr( 0 ), wid( 1 ) {} ~myBitmap() { DeleteObject( pen ); DeleteObject( brush ); ...
null
null
null
cmap=array(" ", ".", ":", "-", "=", "+", "*", "#", "%", "$", "@" ) for y = -1.0 to 1.0 step 0.05 for x = -1.5 to 1.5 step 0.025 zr=x zi=y i=0 do while i < 100 zr1 = zr*zr - zi*zi - 0.79 zi=zr * zi * 2 + 0.15 zr=zr1 if (zr*zr + zi*zi) > 4. then exit do i = i + 1 ...
null
[ { "role": "user", "content": "#include <windows.h>\n#include <string>\n#include <complex>\n\nconst int BMP_SIZE = 600, ITERATIONS = 512;\nconst long double FCT = 2.85, hFCT = FCT / 2.0;\n\nclass myBitmap {\npublic:\n myBitmap() : pen( NULL ), brush( NULL ), clr( 0 ), wid( 1 ) {}\n ~myBitmap() {\n ...
21
Julia set
null
null
#include <windows.h> #include <string> #include <complex> const int BMP_SIZE = 600, ITERATIONS = 512; const long double FCT = 2.85, hFCT = FCT / 2.0; class myBitmap { public: myBitmap() : pen( NULL ), brush( NULL ), clr( 0 ), wid( 1 ) {} ~myBitmap() { DeleteObject( pen ); DeleteObject( brush ); ...
null
null
null
cmap=array(" ", ".", ":", "-", "=", "+", "*", "#", "%", "$", "@" ) for y = -1.0 to 1.0 step 0.05 for x = -1.5 to 1.5 step 0.025 zr=x zi=y i=0 do while i < 100 zr1 = zr*zr - zi*zi - 0.79 zi=zr * zi * 2 + 0.15 zr=zr1 if (zr*zr + zi*zi) > 4. then exit do i = i + 1 ...
null
[ { "role": "user", "content": "#include <windows.h>\n#include <string>\n#include <complex>\n\nconst int BMP_SIZE = 600, ITERATIONS = 512;\nconst long double FCT = 2.85, hFCT = FCT / 2.0;\n\nclass myBitmap {\npublic:\n myBitmap() : pen( NULL ), brush( NULL ), clr( 0 ), wid( 1 ) {}\n ~myBitmap() {\n ...
22
Julia set
null
using System.Drawing; using System.Linq; namespace RosettaJuliaSet { class Program { static void Main(string[] args) { const int w = 800; const int h = 600; const int zoom = 1; const int maxiter = 255; const int moveX = 0; ...
null
package main import ( "image" "image/color" "image/png" "log" "os" "sync" ) func main() { const ( width, height = 800.0, 600.0 maxIter = 255 cX, cY = -0.7, 0.27015 fileName = "julia.png" ) img := image.NewNRGBA(image.Rect(0, 0, width, height)) var wg sync.WaitGroup wg.Add(width) ...
null
null
null
null
[ { "role": "user", "content": "using System.Drawing;\n\n\n\nusing System.Linq;\n\nnamespace RosettaJuliaSet\n{\n class Program\n {\n static void Main(string[] args)\n {\n const int w = 800;\n const int h = 600;\n const int zoom = 1;\n const int ...
23
Julia set
null
using System.Drawing; using System.Linq; namespace RosettaJuliaSet { class Program { static void Main(string[] args) { const int w = 800; const int h = 600; const int zoom = 1; const int maxiter = 255; const int moveX = 0; ...
null
package main import ( "image" "image/color" "image/png" "log" "os" "sync" ) func main() { const ( width, height = 800.0, 600.0 maxIter = 255 cX, cY = -0.7, 0.27015 fileName = "julia.png" ) img := image.NewNRGBA(image.Rect(0, 0, width, height)) var wg sync.WaitGroup wg.Add(width) ...
null
null
null
null
[ { "role": "user", "content": "using System.Drawing;\n\n\n\nusing System.Linq;\n\nnamespace RosettaJuliaSet\n{\n class Program\n {\n static void Main(string[] args)\n {\n const int w = 800;\n const int h = 600;\n const int zoom = 1;\n const int ...
24
Julia set
null
using System.Drawing; using System.Linq; namespace RosettaJuliaSet { class Program { static void Main(string[] args) { const int w = 800; const int h = 600; const int zoom = 1; const int maxiter = 255; const int moveX = 0; ...
null
null
import javax.swing.*; import java.awt.*; import java.awt.image.BufferedImage; public class JuliaSet extends JPanel { private static final int MAX_ITERATIONS = 300; private static final double ZOOM = 1; private static final double CX = -0.7; private static final double CY = 0.27015; private static f...
null
null
null
[ { "role": "user", "content": "using System.Drawing;\n\n\n\nusing System.Linq;\n\nnamespace RosettaJuliaSet\n{\n class Program\n {\n static void Main(string[] args)\n {\n const int w = 800;\n const int h = 600;\n const int zoom = 1;\n const int ...
25
Julia set
null
using System.Drawing; using System.Linq; namespace RosettaJuliaSet { class Program { static void Main(string[] args) { const int w = 800; const int h = 600; const int zoom = 1; const int maxiter = 255; const int moveX = 0; ...
null
null
import javax.swing.*; import java.awt.*; import java.awt.image.BufferedImage; public class JuliaSet extends JPanel { private static final int MAX_ITERATIONS = 300; private static final double ZOOM = 1; private static final double CX = -0.7; private static final double CY = 0.27015; private static f...
null
null
null
[ { "role": "user", "content": "using System.Drawing;\n\n\n\nusing System.Linq;\n\nnamespace RosettaJuliaSet\n{\n class Program\n {\n static void Main(string[] args)\n {\n const int w = 800;\n const int h = 600;\n const int zoom = 1;\n const int ...
26
Julia set
null
using System.Drawing; using System.Linq; namespace RosettaJuliaSet { class Program { static void Main(string[] args) { const int w = 800; const int h = 600; const int zoom = 1; const int maxiter = 255; const int moveX = 0; ...
null
null
null
from __future__ import division cX = -0.7 cY = 0.27015 maxIter = 300 def setup(): size(640, 480) def draw(): for x in range(width): for y in range(height): zx = 1.5 * (x - width / 2) / (0.5 * width) zy = (y - height / 2) / (0.5 * height) i = maxIter whi...
null
null
[ { "role": "user", "content": "using System.Drawing;\n\n\n\nusing System.Linq;\n\nnamespace RosettaJuliaSet\n{\n class Program\n {\n static void Main(string[] args)\n {\n const int w = 800;\n const int h = 600;\n const int zoom = 1;\n const int ...
27
Julia set
null
using System.Drawing; using System.Linq; namespace RosettaJuliaSet { class Program { static void Main(string[] args) { const int w = 800; const int h = 600; const int zoom = 1; const int maxiter = 255; const int moveX = 0; ...
null
null
null
null
cmap=array(" ", ".", ":", "-", "=", "+", "*", "#", "%", "$", "@" ) for y = -1.0 to 1.0 step 0.05 for x = -1.5 to 1.5 step 0.025 zr=x zi=y i=0 do while i < 100 zr1 = zr*zr - zi*zi - 0.79 zi=zr * zi * 2 + 0.15 zr=zr1 if (zr*zr + zi*zi) > 4. then exit do i = i + 1 ...
null
[ { "role": "user", "content": "using System.Drawing;\n\n\n\nusing System.Linq;\n\nnamespace RosettaJuliaSet\n{\n class Program\n {\n static void Main(string[] args)\n {\n const int w = 800;\n const int h = 600;\n const int zoom = 1;\n const int ...
28
Julia set
null
using System.Drawing; using System.Linq; namespace RosettaJuliaSet { class Program { static void Main(string[] args) { const int w = 800; const int h = 600; const int zoom = 1; const int maxiter = 255; const int moveX = 0; ...
null
null
null
null
cmap=array(" ", ".", ":", "-", "=", "+", "*", "#", "%", "$", "@" ) for y = -1.0 to 1.0 step 0.05 for x = -1.5 to 1.5 step 0.025 zr=x zi=y i=0 do while i < 100 zr1 = zr*zr - zi*zi - 0.79 zi=zr * zi * 2 + 0.15 zr=zr1 if (zr*zr + zi*zi) > 4. then exit do i = i + 1 ...
null
[ { "role": "user", "content": "using System.Drawing;\n\n\n\nusing System.Linq;\n\nnamespace RosettaJuliaSet\n{\n class Program\n {\n static void Main(string[] args)\n {\n const int w = 800;\n const int h = 600;\n const int zoom = 1;\n const int ...
29
Julia set
null
null
null
package main import ( "image" "image/color" "image/png" "log" "os" "sync" ) func main() { const ( width, height = 800.0, 600.0 maxIter = 255 cX, cY = -0.7, 0.27015 fileName = "julia.png" ) img := image.NewNRGBA(image.Rect(0, 0, width, height)) var wg sync.WaitGroup wg.Add(width) ...
import javax.swing.*; import java.awt.*; import java.awt.image.BufferedImage; public class JuliaSet extends JPanel { private static final int MAX_ITERATIONS = 300; private static final double ZOOM = 1; private static final double CX = -0.7; private static final double CY = 0.27015; private static f...
null
null
null
[ { "role": "user", "content": "package main\n\nimport (\n\t\"image\"\n\t\"image/color\"\n\t\"image/png\"\n\t\"log\"\n\t\"os\"\n\t\"sync\"\n)\n\nfunc main() {\n\tconst (\n\t\twidth, height = 800.0, 600.0\n\t\tmaxIter = 255\n\t\tcX, cY = -0.7, 0.27015\n\t\tfileName = \"julia.png\"\n\t)\n\timg...
30
Julia set
null
null
null
null
import javax.swing.*; import java.awt.*; import java.awt.image.BufferedImage; public class JuliaSet extends JPanel { private static final int MAX_ITERATIONS = 300; private static final double ZOOM = 1; private static final double CX = -0.7; private static final double CY = 0.27015; private static f...
from __future__ import division cX = -0.7 cY = 0.27015 maxIter = 300 def setup(): size(640, 480) def draw(): for x in range(width): for y in range(height): zx = 1.5 * (x - width / 2) / (0.5 * width) zy = (y - height / 2) / (0.5 * height) i = maxIter whi...
null
null
[ { "role": "user", "content": "import javax.swing.*;\nimport java.awt.*;\nimport java.awt.image.BufferedImage;\n\npublic class JuliaSet extends JPanel {\n private static final int MAX_ITERATIONS = 300;\n private static final double ZOOM = 1;\n private static final double CX = -0.7;\n private stat...
31
Julia set
null
null
null
null
import javax.swing.*; import java.awt.*; import java.awt.image.BufferedImage; public class JuliaSet extends JPanel { private static final int MAX_ITERATIONS = 300; private static final double ZOOM = 1; private static final double CX = -0.7; private static final double CY = 0.27015; private static f...
null
cmap=array(" ", ".", ":", "-", "=", "+", "*", "#", "%", "$", "@" ) for y = -1.0 to 1.0 step 0.05 for x = -1.5 to 1.5 step 0.025 zr=x zi=y i=0 do while i < 100 zr1 = zr*zr - zi*zi - 0.79 zi=zr * zi * 2 + 0.15 zr=zr1 if (zr*zr + zi*zi) > 4. then exit do i = i + 1 ...
null
[ { "role": "user", "content": "import javax.swing.*;\nimport java.awt.*;\nimport java.awt.image.BufferedImage;\n\npublic class JuliaSet extends JPanel {\n private static final int MAX_ITERATIONS = 300;\n private static final double ZOOM = 1;\n private static final double CX = -0.7;\n private stat...
32
Julia set
null
null
null
package main import ( "image" "image/color" "image/png" "log" "os" "sync" ) func main() { const ( width, height = 800.0, 600.0 maxIter = 255 cX, cY = -0.7, 0.27015 fileName = "julia.png" ) img := image.NewNRGBA(image.Rect(0, 0, width, height)) var wg sync.WaitGroup wg.Add(width) ...
null
from __future__ import division cX = -0.7 cY = 0.27015 maxIter = 300 def setup(): size(640, 480) def draw(): for x in range(width): for y in range(height): zx = 1.5 * (x - width / 2) / (0.5 * width) zy = (y - height / 2) / (0.5 * height) i = maxIter whi...
null
null
[ { "role": "user", "content": "package main\n\nimport (\n\t\"image\"\n\t\"image/color\"\n\t\"image/png\"\n\t\"log\"\n\t\"os\"\n\t\"sync\"\n)\n\nfunc main() {\n\tconst (\n\t\twidth, height = 800.0, 600.0\n\t\tmaxIter = 255\n\t\tcX, cY = -0.7, 0.27015\n\t\tfileName = \"julia.png\"\n\t)\n\timg...
33
Julia set
null
null
null
package main import ( "image" "image/color" "image/png" "log" "os" "sync" ) func main() { const ( width, height = 800.0, 600.0 maxIter = 255 cX, cY = -0.7, 0.27015 fileName = "julia.png" ) img := image.NewNRGBA(image.Rect(0, 0, width, height)) var wg sync.WaitGroup wg.Add(width) ...
null
null
cmap=array(" ", ".", ":", "-", "=", "+", "*", "#", "%", "$", "@" ) for y = -1.0 to 1.0 step 0.05 for x = -1.5 to 1.5 step 0.025 zr=x zi=y i=0 do while i < 100 zr1 = zr*zr - zi*zi - 0.79 zi=zr * zi * 2 + 0.15 zr=zr1 if (zr*zr + zi*zi) > 4. then exit do i = i + 1 ...
null
[ { "role": "user", "content": "package main\n\nimport (\n\t\"image\"\n\t\"image/color\"\n\t\"image/png\"\n\t\"log\"\n\t\"os\"\n\t\"sync\"\n)\n\nfunc main() {\n\tconst (\n\t\twidth, height = 800.0, 600.0\n\t\tmaxIter = 255\n\t\tcX, cY = -0.7, 0.27015\n\t\tfileName = \"julia.png\"\n\t)\n\timg...
34
Julia set
null
null
null
null
null
from __future__ import division cX = -0.7 cY = 0.27015 maxIter = 300 def setup(): size(640, 480) def draw(): for x in range(width): for y in range(height): zx = 1.5 * (x - width / 2) / (0.5 * width) zy = (y - height / 2) / (0.5 * height) i = maxIter whi...
cmap=array(" ", ".", ":", "-", "=", "+", "*", "#", "%", "$", "@" ) for y = -1.0 to 1.0 step 0.05 for x = -1.5 to 1.5 step 0.025 zr=x zi=y i=0 do while i < 100 zr1 = zr*zr - zi*zi - 0.79 zi=zr * zi * 2 + 0.15 zr=zr1 if (zr*zr + zi*zi) > 4. then exit do i = i + 1 ...
null
[ { "role": "user", "content": "from __future__ import division\n\ncX = -0.7\ncY = 0.27015\nmaxIter = 300\n\ndef setup():\n size(640, 480)\n\ndef draw():\n for x in range(width):\n for y in range(height):\n zx = 1.5 * (x - width / 2) / (0.5 * width)\n zy = (y - height / 2) /...
35
Julia set
#include<graphics.h> #include<stdlib.h> #include<math.h> typedef struct{ double x,y; }complex; complex add(complex a,complex b){ complex c; c.x = a.x + b.x; c.y = a.y + b.y; return c; } complex sqr(complex a){ complex c; c.x = a.x*a.x - a.y*a.y; c.y = 2*a.x*a.y; return c; } double mod(complex a){ return s...
null
#include <windows.h> #include <string> #include <complex> const int BMP_SIZE = 600, ITERATIONS = 512; const long double FCT = 2.85, hFCT = FCT / 2.0; class myBitmap { public: myBitmap() : pen( NULL ), brush( NULL ), clr( 0 ), wid( 1 ) {} ~myBitmap() { DeleteObject( pen ); DeleteObject( brush ); ...
null
null
null
null
null
[ { "role": "user", "content": "#include<graphics.h>\n#include<stdlib.h>\n#include<math.h>\n\ntypedef struct{\n\tdouble x,y;\n}complex;\n\ncomplex add(complex a,complex b){\n\tcomplex c;\n\tc.x = a.x + b.x;\n\tc.y = a.y + b.y;\n\treturn c;\n}\n\ncomplex sqr(complex a){\n\tcomplex c;\n\tc.x = a.x*a.x - a.y*a.y...
36
Julia set
null
null
null
null
import javax.swing.*; import java.awt.*; import java.awt.image.BufferedImage; public class JuliaSet extends JPanel { private static final int MAX_ITERATIONS = 300; private static final double ZOOM = 1; private static final double CX = -0.7; private static final double CY = 0.27015; private static f...
from __future__ import division cX = -0.7 cY = 0.27015 maxIter = 300 def setup(): size(640, 480) def draw(): for x in range(width): for y in range(height): zx = 1.5 * (x - width / 2) / (0.5 * width) zy = (y - height / 2) / (0.5 * height) i = maxIter whi...
null
null
[ { "role": "user", "content": "import javax.swing.*;\nimport java.awt.*;\nimport java.awt.image.BufferedImage;\n\npublic class JuliaSet extends JPanel {\n private static final int MAX_ITERATIONS = 300;\n private static final double ZOOM = 1;\n private static final double CX = -0.7;\n private stat...
37
Julia set
null
null
null
null
import javax.swing.*; import java.awt.*; import java.awt.image.BufferedImage; public class JuliaSet extends JPanel { private static final int MAX_ITERATIONS = 300; private static final double ZOOM = 1; private static final double CX = -0.7; private static final double CY = 0.27015; private static f...
null
cmap=array(" ", ".", ":", "-", "=", "+", "*", "#", "%", "$", "@" ) for y = -1.0 to 1.0 step 0.05 for x = -1.5 to 1.5 step 0.025 zr=x zi=y i=0 do while i < 100 zr1 = zr*zr - zi*zi - 0.79 zi=zr * zi * 2 + 0.15 zr=zr1 if (zr*zr + zi*zi) > 4. then exit do i = i + 1 ...
null
[ { "role": "user", "content": "import javax.swing.*;\nimport java.awt.*;\nimport java.awt.image.BufferedImage;\n\npublic class JuliaSet extends JPanel {\n private static final int MAX_ITERATIONS = 300;\n private static final double ZOOM = 1;\n private static final double CX = -0.7;\n private stat...
38
Julia set
null
null
null
package main import ( "image" "image/color" "image/png" "log" "os" "sync" ) func main() { const ( width, height = 800.0, 600.0 maxIter = 255 cX, cY = -0.7, 0.27015 fileName = "julia.png" ) img := image.NewNRGBA(image.Rect(0, 0, width, height)) var wg sync.WaitGroup wg.Add(width) ...
null
from __future__ import division cX = -0.7 cY = 0.27015 maxIter = 300 def setup(): size(640, 480) def draw(): for x in range(width): for y in range(height): zx = 1.5 * (x - width / 2) / (0.5 * width) zy = (y - height / 2) / (0.5 * height) i = maxIter whi...
null
null
[ { "role": "user", "content": "package main\n\nimport (\n\t\"image\"\n\t\"image/color\"\n\t\"image/png\"\n\t\"log\"\n\t\"os\"\n\t\"sync\"\n)\n\nfunc main() {\n\tconst (\n\t\twidth, height = 800.0, 600.0\n\t\tmaxIter = 255\n\t\tcX, cY = -0.7, 0.27015\n\t\tfileName = \"julia.png\"\n\t)\n\timg...
39
Julia set
null
null
null
package main import ( "image" "image/color" "image/png" "log" "os" "sync" ) func main() { const ( width, height = 800.0, 600.0 maxIter = 255 cX, cY = -0.7, 0.27015 fileName = "julia.png" ) img := image.NewNRGBA(image.Rect(0, 0, width, height)) var wg sync.WaitGroup wg.Add(width) ...
null
null
cmap=array(" ", ".", ":", "-", "=", "+", "*", "#", "%", "$", "@" ) for y = -1.0 to 1.0 step 0.05 for x = -1.5 to 1.5 step 0.025 zr=x zi=y i=0 do while i < 100 zr1 = zr*zr - zi*zi - 0.79 zi=zr * zi * 2 + 0.15 zr=zr1 if (zr*zr + zi*zi) > 4. then exit do i = i + 1 ...
null
[ { "role": "user", "content": "package main\n\nimport (\n\t\"image\"\n\t\"image/color\"\n\t\"image/png\"\n\t\"log\"\n\t\"os\"\n\t\"sync\"\n)\n\nfunc main() {\n\tconst (\n\t\twidth, height = 800.0, 600.0\n\t\tmaxIter = 255\n\t\tcX, cY = -0.7, 0.27015\n\t\tfileName = \"julia.png\"\n\t)\n\timg...
40
Julia set
null
null
null
null
null
from __future__ import division cX = -0.7 cY = 0.27015 maxIter = 300 def setup(): size(640, 480) def draw(): for x in range(width): for y in range(height): zx = 1.5 * (x - width / 2) / (0.5 * width) zy = (y - height / 2) / (0.5 * height) i = maxIter whi...
cmap=array(" ", ".", ":", "-", "=", "+", "*", "#", "%", "$", "@" ) for y = -1.0 to 1.0 step 0.05 for x = -1.5 to 1.5 step 0.025 zr=x zi=y i=0 do while i < 100 zr1 = zr*zr - zi*zi - 0.79 zi=zr * zi * 2 + 0.15 zr=zr1 if (zr*zr + zi*zi) > 4. then exit do i = i + 1 ...
null
[ { "role": "user", "content": "from __future__ import division\n\ncX = -0.7\ncY = 0.27015\nmaxIter = 300\n\ndef setup():\n size(640, 480)\n\ndef draw():\n for x in range(width):\n for y in range(height):\n zx = 1.5 * (x - width / 2) / (0.5 * width)\n zy = (y - height / 2) /...
41
Julia set
null
using System.Drawing; using System.Linq; namespace RosettaJuliaSet { class Program { static void Main(string[] args) { const int w = 800; const int h = 600; const int zoom = 1; const int maxiter = 255; const int moveX = 0; ...
null
null
null
from __future__ import division cX = -0.7 cY = 0.27015 maxIter = 300 def setup(): size(640, 480) def draw(): for x in range(width): for y in range(height): zx = 1.5 * (x - width / 2) / (0.5 * width) zy = (y - height / 2) / (0.5 * height) i = maxIter whi...
null
null
[ { "role": "user", "content": "using System.Drawing;\n\n\n\nusing System.Linq;\n\nnamespace RosettaJuliaSet\n{\n class Program\n {\n static void Main(string[] args)\n {\n const int w = 800;\n const int h = 600;\n const int zoom = 1;\n const int ...
42
Julia set
null
null
null
package main import ( "image" "image/color" "image/png" "log" "os" "sync" ) func main() { const ( width, height = 800.0, 600.0 maxIter = 255 cX, cY = -0.7, 0.27015 fileName = "julia.png" ) img := image.NewNRGBA(image.Rect(0, 0, width, height)) var wg sync.WaitGroup wg.Add(width) ...
import javax.swing.*; import java.awt.*; import java.awt.image.BufferedImage; public class JuliaSet extends JPanel { private static final int MAX_ITERATIONS = 300; private static final double ZOOM = 1; private static final double CX = -0.7; private static final double CY = 0.27015; private static f...
null
null
null
[ { "role": "user", "content": "package main\n\nimport (\n\t\"image\"\n\t\"image/color\"\n\t\"image/png\"\n\t\"log\"\n\t\"os\"\n\t\"sync\"\n)\n\nfunc main() {\n\tconst (\n\t\twidth, height = 800.0, 600.0\n\t\tmaxIter = 255\n\t\tcX, cY = -0.7, 0.27015\n\t\tfileName = \"julia.png\"\n\t)\n\timg...
43
Julia set
null
using System.Drawing; using System.Linq; namespace RosettaJuliaSet { class Program { static void Main(string[] args) { const int w = 800; const int h = 600; const int zoom = 1; const int maxiter = 255; const int moveX = 0; ...
null
null
null
from __future__ import division cX = -0.7 cY = 0.27015 maxIter = 300 def setup(): size(640, 480) def draw(): for x in range(width): for y in range(height): zx = 1.5 * (x - width / 2) / (0.5 * width) zy = (y - height / 2) / (0.5 * height) i = maxIter whi...
null
null
[ { "role": "user", "content": "using System.Drawing;\n\n\n\nusing System.Linq;\n\nnamespace RosettaJuliaSet\n{\n class Program\n {\n static void Main(string[] args)\n {\n const int w = 800;\n const int h = 600;\n const int zoom = 1;\n const int ...
44
Julia set
null
null
null
package main import ( "image" "image/color" "image/png" "log" "os" "sync" ) func main() { const ( width, height = 800.0, 600.0 maxIter = 255 cX, cY = -0.7, 0.27015 fileName = "julia.png" ) img := image.NewNRGBA(image.Rect(0, 0, width, height)) var wg sync.WaitGroup wg.Add(width) ...
import javax.swing.*; import java.awt.*; import java.awt.image.BufferedImage; public class JuliaSet extends JPanel { private static final int MAX_ITERATIONS = 300; private static final double ZOOM = 1; private static final double CX = -0.7; private static final double CY = 0.27015; private static f...
null
null
null
[ { "role": "user", "content": "package main\n\nimport (\n\t\"image\"\n\t\"image/color\"\n\t\"image/png\"\n\t\"log\"\n\t\"os\"\n\t\"sync\"\n)\n\nfunc main() {\n\tconst (\n\t\twidth, height = 800.0, 600.0\n\t\tmaxIter = 255\n\t\tcX, cY = -0.7, 0.27015\n\t\tfileName = \"julia.png\"\n\t)\n\timg...
45
Julia set
#include<graphics.h> #include<stdlib.h> #include<math.h> typedef struct{ double x,y; }complex; complex add(complex a,complex b){ complex c; c.x = a.x + b.x; c.y = a.y + b.y; return c; } complex sqr(complex a){ complex c; c.x = a.x*a.x - a.y*a.y; c.y = 2*a.x*a.y; return c; } double mod(complex a){ return s...
null
null
null
null
null
null
set_time_limit(300); header("Content-Type: image/png"); class Julia { static private $started = false; public static function start() { if (!self::$started) { self::$started = true; new self; } } const AXIS_REAL = 0; const AXIS_IMAGINARY = 1; const C = [-0.75, 0.1]; const RADII = [1, 0.5];...
[ { "role": "user", "content": "#include<graphics.h>\n#include<stdlib.h>\n#include<math.h>\n\ntypedef struct{\n\tdouble x,y;\n}complex;\n\ncomplex add(complex a,complex b){\n\tcomplex c;\n\tc.x = a.x + b.x;\n\tc.y = a.y + b.y;\n\treturn c;\n}\n\ncomplex sqr(complex a){\n\tcomplex c;\n\tc.x = a.x*a.x - a.y*a.y...
46
Julia set
#include<graphics.h> #include<stdlib.h> #include<math.h> typedef struct{ double x,y; }complex; complex add(complex a,complex b){ complex c; c.x = a.x + b.x; c.y = a.y + b.y; return c; } complex sqr(complex a){ complex c; c.x = a.x*a.x - a.y*a.y; c.y = 2*a.x*a.y; return c; } double mod(complex a){ return s...
null
null
null
null
null
null
set_time_limit(300); header("Content-Type: image/png"); class Julia { static private $started = false; public static function start() { if (!self::$started) { self::$started = true; new self; } } const AXIS_REAL = 0; const AXIS_IMAGINARY = 1; const C = [-0.75, 0.1]; const RADII = [1, 0.5];...
[ { "role": "user", "content": "#include<graphics.h>\n#include<stdlib.h>\n#include<math.h>\n\ntypedef struct{\n\tdouble x,y;\n}complex;\n\ncomplex add(complex a,complex b){\n\tcomplex c;\n\tc.x = a.x + b.x;\n\tc.y = a.y + b.y;\n\treturn c;\n}\n\ncomplex sqr(complex a){\n\tcomplex c;\n\tc.x = a.x*a.x - a.y*a.y...
47
Julia set
null
using System.Drawing; using System.Linq; namespace RosettaJuliaSet { class Program { static void Main(string[] args) { const int w = 800; const int h = 600; const int zoom = 1; const int maxiter = 255; const int moveX = 0; ...
null
null
null
null
null
set_time_limit(300); header("Content-Type: image/png"); class Julia { static private $started = false; public static function start() { if (!self::$started) { self::$started = true; new self; } } const AXIS_REAL = 0; const AXIS_IMAGINARY = 1; const C = [-0.75, 0.1]; const RADII = [1, 0.5];...
[ { "role": "user", "content": "using System.Drawing;\n\n\n\nusing System.Linq;\n\nnamespace RosettaJuliaSet\n{\n class Program\n {\n static void Main(string[] args)\n {\n const int w = 800;\n const int h = 600;\n const int zoom = 1;\n const int ...
48
Julia set
null
using System.Drawing; using System.Linq; namespace RosettaJuliaSet { class Program { static void Main(string[] args) { const int w = 800; const int h = 600; const int zoom = 1; const int maxiter = 255; const int moveX = 0; ...
null
null
null
null
null
set_time_limit(300); header("Content-Type: image/png"); class Julia { static private $started = false; public static function start() { if (!self::$started) { self::$started = true; new self; } } const AXIS_REAL = 0; const AXIS_IMAGINARY = 1; const C = [-0.75, 0.1]; const RADII = [1, 0.5];...
[ { "role": "user", "content": "using System.Drawing;\n\n\n\nusing System.Linq;\n\nnamespace RosettaJuliaSet\n{\n class Program\n {\n static void Main(string[] args)\n {\n const int w = 800;\n const int h = 600;\n const int zoom = 1;\n const int ...
49
Julia set
null
null
#include <windows.h> #include <string> #include <complex> const int BMP_SIZE = 600, ITERATIONS = 512; const long double FCT = 2.85, hFCT = FCT / 2.0; class myBitmap { public: myBitmap() : pen( NULL ), brush( NULL ), clr( 0 ), wid( 1 ) {} ~myBitmap() { DeleteObject( pen ); DeleteObject( brush ); ...
null
null
null
null
set_time_limit(300); header("Content-Type: image/png"); class Julia { static private $started = false; public static function start() { if (!self::$started) { self::$started = true; new self; } } const AXIS_REAL = 0; const AXIS_IMAGINARY = 1; const C = [-0.75, 0.1]; const RADII = [1, 0.5];...
[ { "role": "user", "content": "#include <windows.h>\n#include <string>\n#include <complex>\n\nconst int BMP_SIZE = 600, ITERATIONS = 512;\nconst long double FCT = 2.85, hFCT = FCT / 2.0;\n\nclass myBitmap {\npublic:\n myBitmap() : pen( NULL ), brush( NULL ), clr( 0 ), wid( 1 ) {}\n ~myBitmap() {\n ...
50
Julia set
null
null
#include <windows.h> #include <string> #include <complex> const int BMP_SIZE = 600, ITERATIONS = 512; const long double FCT = 2.85, hFCT = FCT / 2.0; class myBitmap { public: myBitmap() : pen( NULL ), brush( NULL ), clr( 0 ), wid( 1 ) {} ~myBitmap() { DeleteObject( pen ); DeleteObject( brush ); ...
null
null
null
null
set_time_limit(300); header("Content-Type: image/png"); class Julia { static private $started = false; public static function start() { if (!self::$started) { self::$started = true; new self; } } const AXIS_REAL = 0; const AXIS_IMAGINARY = 1; const C = [-0.75, 0.1]; const RADII = [1, 0.5];...
[ { "role": "user", "content": "#include <windows.h>\n#include <string>\n#include <complex>\n\nconst int BMP_SIZE = 600, ITERATIONS = 512;\nconst long double FCT = 2.85, hFCT = FCT / 2.0;\n\nclass myBitmap {\npublic:\n myBitmap() : pen( NULL ), brush( NULL ), clr( 0 ), wid( 1 ) {}\n ~myBitmap() {\n ...
51
Julia set
null
null
null
package main import ( "image" "image/color" "image/png" "log" "os" "sync" ) func main() { const ( width, height = 800.0, 600.0 maxIter = 255 cX, cY = -0.7, 0.27015 fileName = "julia.png" ) img := image.NewNRGBA(image.Rect(0, 0, width, height)) var wg sync.WaitGroup wg.Add(width) ...
null
null
null
set_time_limit(300); header("Content-Type: image/png"); class Julia { static private $started = false; public static function start() { if (!self::$started) { self::$started = true; new self; } } const AXIS_REAL = 0; const AXIS_IMAGINARY = 1; const C = [-0.75, 0.1]; const RADII = [1, 0.5];...
[ { "role": "user", "content": "package main\n\nimport (\n\t\"image\"\n\t\"image/color\"\n\t\"image/png\"\n\t\"log\"\n\t\"os\"\n\t\"sync\"\n)\n\nfunc main() {\n\tconst (\n\t\twidth, height = 800.0, 600.0\n\t\tmaxIter = 255\n\t\tcX, cY = -0.7, 0.27015\n\t\tfileName = \"julia.png\"\n\t)\n\timg...
52
Julia set
null
null
null
package main import ( "image" "image/color" "image/png" "log" "os" "sync" ) func main() { const ( width, height = 800.0, 600.0 maxIter = 255 cX, cY = -0.7, 0.27015 fileName = "julia.png" ) img := image.NewNRGBA(image.Rect(0, 0, width, height)) var wg sync.WaitGroup wg.Add(width) ...
null
null
null
set_time_limit(300); header("Content-Type: image/png"); class Julia { static private $started = false; public static function start() { if (!self::$started) { self::$started = true; new self; } } const AXIS_REAL = 0; const AXIS_IMAGINARY = 1; const C = [-0.75, 0.1]; const RADII = [1, 0.5];...
[ { "role": "user", "content": "package main\n\nimport (\n\t\"image\"\n\t\"image/color\"\n\t\"image/png\"\n\t\"log\"\n\t\"os\"\n\t\"sync\"\n)\n\nfunc main() {\n\tconst (\n\t\twidth, height = 800.0, 600.0\n\t\tmaxIter = 255\n\t\tcX, cY = -0.7, 0.27015\n\t\tfileName = \"julia.png\"\n\t)\n\timg...
53
Julia set
null
null
null
package main import ( "image" "image/color" "image/png" "log" "os" "sync" ) func main() { const ( width, height = 800.0, 600.0 maxIter = 255 cX, cY = -0.7, 0.27015 fileName = "julia.png" ) img := image.NewNRGBA(image.Rect(0, 0, width, height)) var wg sync.WaitGroup wg.Add(width) ...
null
null
null
set_time_limit(300); header("Content-Type: image/png"); class Julia { static private $started = false; public static function start() { if (!self::$started) { self::$started = true; new self; } } const AXIS_REAL = 0; const AXIS_IMAGINARY = 1; const C = [-0.75, 0.1]; const RADII = [1, 0.5];...
[ { "role": "user", "content": "package main\n\nimport (\n\t\"image\"\n\t\"image/color\"\n\t\"image/png\"\n\t\"log\"\n\t\"os\"\n\t\"sync\"\n)\n\nfunc main() {\n\tconst (\n\t\twidth, height = 800.0, 600.0\n\t\tmaxIter = 255\n\t\tcX, cY = -0.7, 0.27015\n\t\tfileName = \"julia.png\"\n\t)\n\timg...
54
Julia set
null
null
null
package main import ( "image" "image/color" "image/png" "log" "os" "sync" ) func main() { const ( width, height = 800.0, 600.0 maxIter = 255 cX, cY = -0.7, 0.27015 fileName = "julia.png" ) img := image.NewNRGBA(image.Rect(0, 0, width, height)) var wg sync.WaitGroup wg.Add(width) ...
null
null
null
set_time_limit(300); header("Content-Type: image/png"); class Julia { static private $started = false; public static function start() { if (!self::$started) { self::$started = true; new self; } } const AXIS_REAL = 0; const AXIS_IMAGINARY = 1; const C = [-0.75, 0.1]; const RADII = [1, 0.5];...
[ { "role": "user", "content": "package main\n\nimport (\n\t\"image\"\n\t\"image/color\"\n\t\"image/png\"\n\t\"log\"\n\t\"os\"\n\t\"sync\"\n)\n\nfunc main() {\n\tconst (\n\t\twidth, height = 800.0, 600.0\n\t\tmaxIter = 255\n\t\tcX, cY = -0.7, 0.27015\n\t\tfileName = \"julia.png\"\n\t)\n\timg...
55
Julia set
null
null
null
null
import javax.swing.*; import java.awt.*; import java.awt.image.BufferedImage; public class JuliaSet extends JPanel { private static final int MAX_ITERATIONS = 300; private static final double ZOOM = 1; private static final double CX = -0.7; private static final double CY = 0.27015; private static f...
null
null
set_time_limit(300); header("Content-Type: image/png"); class Julia { static private $started = false; public static function start() { if (!self::$started) { self::$started = true; new self; } } const AXIS_REAL = 0; const AXIS_IMAGINARY = 1; const C = [-0.75, 0.1]; const RADII = [1, 0.5];...
[ { "role": "user", "content": "import javax.swing.*;\nimport java.awt.*;\nimport java.awt.image.BufferedImage;\n\npublic class JuliaSet extends JPanel {\n private static final int MAX_ITERATIONS = 300;\n private static final double ZOOM = 1;\n private static final double CX = -0.7;\n private stat...
56
Julia set
null
null
null
null
import javax.swing.*; import java.awt.*; import java.awt.image.BufferedImage; public class JuliaSet extends JPanel { private static final int MAX_ITERATIONS = 300; private static final double ZOOM = 1; private static final double CX = -0.7; private static final double CY = 0.27015; private static f...
null
null
set_time_limit(300); header("Content-Type: image/png"); class Julia { static private $started = false; public static function start() { if (!self::$started) { self::$started = true; new self; } } const AXIS_REAL = 0; const AXIS_IMAGINARY = 1; const C = [-0.75, 0.1]; const RADII = [1, 0.5];...
[ { "role": "user", "content": "import javax.swing.*;\nimport java.awt.*;\nimport java.awt.image.BufferedImage;\n\npublic class JuliaSet extends JPanel {\n private static final int MAX_ITERATIONS = 300;\n private static final double ZOOM = 1;\n private static final double CX = -0.7;\n private stat...
57
Julia set
null
null
null
null
import javax.swing.*; import java.awt.*; import java.awt.image.BufferedImage; public class JuliaSet extends JPanel { private static final int MAX_ITERATIONS = 300; private static final double ZOOM = 1; private static final double CX = -0.7; private static final double CY = 0.27015; private static f...
null
null
set_time_limit(300); header("Content-Type: image/png"); class Julia { static private $started = false; public static function start() { if (!self::$started) { self::$started = true; new self; } } const AXIS_REAL = 0; const AXIS_IMAGINARY = 1; const C = [-0.75, 0.1]; const RADII = [1, 0.5];...
[ { "role": "user", "content": "import javax.swing.*;\nimport java.awt.*;\nimport java.awt.image.BufferedImage;\n\npublic class JuliaSet extends JPanel {\n private static final int MAX_ITERATIONS = 300;\n private static final double ZOOM = 1;\n private static final double CX = -0.7;\n private stat...
58
Julia set
null
null
null
null
import javax.swing.*; import java.awt.*; import java.awt.image.BufferedImage; public class JuliaSet extends JPanel { private static final int MAX_ITERATIONS = 300; private static final double ZOOM = 1; private static final double CX = -0.7; private static final double CY = 0.27015; private static f...
null
null
set_time_limit(300); header("Content-Type: image/png"); class Julia { static private $started = false; public static function start() { if (!self::$started) { self::$started = true; new self; } } const AXIS_REAL = 0; const AXIS_IMAGINARY = 1; const C = [-0.75, 0.1]; const RADII = [1, 0.5];...
[ { "role": "user", "content": "import javax.swing.*;\nimport java.awt.*;\nimport java.awt.image.BufferedImage;\n\npublic class JuliaSet extends JPanel {\n private static final int MAX_ITERATIONS = 300;\n private static final double ZOOM = 1;\n private static final double CX = -0.7;\n private stat...
59
Julia set
null
null
null
null
null
from __future__ import division cX = -0.7 cY = 0.27015 maxIter = 300 def setup(): size(640, 480) def draw(): for x in range(width): for y in range(height): zx = 1.5 * (x - width / 2) / (0.5 * width) zy = (y - height / 2) / (0.5 * height) i = maxIter whi...
null
set_time_limit(300); header("Content-Type: image/png"); class Julia { static private $started = false; public static function start() { if (!self::$started) { self::$started = true; new self; } } const AXIS_REAL = 0; const AXIS_IMAGINARY = 1; const C = [-0.75, 0.1]; const RADII = [1, 0.5];...
[ { "role": "user", "content": "from __future__ import division\n\ncX = -0.7\ncY = 0.27015\nmaxIter = 300\n\ndef setup():\n size(640, 480)\n\ndef draw():\n for x in range(width):\n for y in range(height):\n zx = 1.5 * (x - width / 2) / (0.5 * width)\n zy = (y - height / 2) /...
60
Julia set
null
null
null
null
null
from __future__ import division cX = -0.7 cY = 0.27015 maxIter = 300 def setup(): size(640, 480) def draw(): for x in range(width): for y in range(height): zx = 1.5 * (x - width / 2) / (0.5 * width) zy = (y - height / 2) / (0.5 * height) i = maxIter whi...
null
set_time_limit(300); header("Content-Type: image/png"); class Julia { static private $started = false; public static function start() { if (!self::$started) { self::$started = true; new self; } } const AXIS_REAL = 0; const AXIS_IMAGINARY = 1; const C = [-0.75, 0.1]; const RADII = [1, 0.5];...
[ { "role": "user", "content": "from __future__ import division\n\ncX = -0.7\ncY = 0.27015\nmaxIter = 300\n\ndef setup():\n size(640, 480)\n\ndef draw():\n for x in range(width):\n for y in range(height):\n zx = 1.5 * (x - width / 2) / (0.5 * width)\n zy = (y - height / 2) /...
61
Julia set
null
null
null
null
null
from __future__ import division cX = -0.7 cY = 0.27015 maxIter = 300 def setup(): size(640, 480) def draw(): for x in range(width): for y in range(height): zx = 1.5 * (x - width / 2) / (0.5 * width) zy = (y - height / 2) / (0.5 * height) i = maxIter whi...
null
set_time_limit(300); header("Content-Type: image/png"); class Julia { static private $started = false; public static function start() { if (!self::$started) { self::$started = true; new self; } } const AXIS_REAL = 0; const AXIS_IMAGINARY = 1; const C = [-0.75, 0.1]; const RADII = [1, 0.5];...
[ { "role": "user", "content": "from __future__ import division\n\ncX = -0.7\ncY = 0.27015\nmaxIter = 300\n\ndef setup():\n size(640, 480)\n\ndef draw():\n for x in range(width):\n for y in range(height):\n zx = 1.5 * (x - width / 2) / (0.5 * width)\n zy = (y - height / 2) /...
62
Julia set
null
null
null
null
null
from __future__ import division cX = -0.7 cY = 0.27015 maxIter = 300 def setup(): size(640, 480) def draw(): for x in range(width): for y in range(height): zx = 1.5 * (x - width / 2) / (0.5 * width) zy = (y - height / 2) / (0.5 * height) i = maxIter whi...
null
set_time_limit(300); header("Content-Type: image/png"); class Julia { static private $started = false; public static function start() { if (!self::$started) { self::$started = true; new self; } } const AXIS_REAL = 0; const AXIS_IMAGINARY = 1; const C = [-0.75, 0.1]; const RADII = [1, 0.5];...
[ { "role": "user", "content": "from __future__ import division\n\ncX = -0.7\ncY = 0.27015\nmaxIter = 300\n\ndef setup():\n size(640, 480)\n\ndef draw():\n for x in range(width):\n for y in range(height):\n zx = 1.5 * (x - width / 2) / (0.5 * width)\n zy = (y - height / 2) /...
63
Julia set
null
null
null
null
null
from __future__ import division cX = -0.7 cY = 0.27015 maxIter = 300 def setup(): size(640, 480) def draw(): for x in range(width): for y in range(height): zx = 1.5 * (x - width / 2) / (0.5 * width) zy = (y - height / 2) / (0.5 * height) i = maxIter whi...
null
set_time_limit(300); header("Content-Type: image/png"); class Julia { static private $started = false; public static function start() { if (!self::$started) { self::$started = true; new self; } } const AXIS_REAL = 0; const AXIS_IMAGINARY = 1; const C = [-0.75, 0.1]; const RADII = [1, 0.5];...
[ { "role": "user", "content": "from __future__ import division\n\ncX = -0.7\ncY = 0.27015\nmaxIter = 300\n\ndef setup():\n size(640, 480)\n\ndef draw():\n for x in range(width):\n for y in range(height):\n zx = 1.5 * (x - width / 2) / (0.5 * width)\n zy = (y - height / 2) /...
64
Julia set
null
null
null
null
null
from __future__ import division cX = -0.7 cY = 0.27015 maxIter = 300 def setup(): size(640, 480) def draw(): for x in range(width): for y in range(height): zx = 1.5 * (x - width / 2) / (0.5 * width) zy = (y - height / 2) / (0.5 * height) i = maxIter whi...
null
set_time_limit(300); header("Content-Type: image/png"); class Julia { static private $started = false; public static function start() { if (!self::$started) { self::$started = true; new self; } } const AXIS_REAL = 0; const AXIS_IMAGINARY = 1; const C = [-0.75, 0.1]; const RADII = [1, 0.5];...
[ { "role": "user", "content": "from __future__ import division\n\ncX = -0.7\ncY = 0.27015\nmaxIter = 300\n\ndef setup():\n size(640, 480)\n\ndef draw():\n for x in range(width):\n for y in range(height):\n zx = 1.5 * (x - width / 2) / (0.5 * width)\n zy = (y - height / 2) /...
65
Julia set
null
null
null
null
null
null
cmap=array(" ", ".", ":", "-", "=", "+", "*", "#", "%", "$", "@" ) for y = -1.0 to 1.0 step 0.05 for x = -1.5 to 1.5 step 0.025 zr=x zi=y i=0 do while i < 100 zr1 = zr*zr - zi*zi - 0.79 zi=zr * zi * 2 + 0.15 zr=zr1 if (zr*zr + zi*zi) > 4. then exit do i = i + 1 ...
set_time_limit(300); header("Content-Type: image/png"); class Julia { static private $started = false; public static function start() { if (!self::$started) { self::$started = true; new self; } } const AXIS_REAL = 0; const AXIS_IMAGINARY = 1; const C = [-0.75, 0.1]; const RADII = [1, 0.5];...
[ { "role": "user", "content": "\n\n\ncmap=array(\" \", \".\", \":\", \"-\", \"=\", \"+\", \"*\", \"#\", \"%\", \"$\", \"@\" )\nfor y = -1.0 to 1.0 step 0.05\n for x = -1.5 to 1.5 step 0.025\n zr=x\n zi=y\n i=0\n do while i < 100\n zr1 = zr*zr - zi*zi - 0.79 \n zi=zr * zi * 2 + 0.15\n...
66
Julia set
null
null
null
null
null
null
cmap=array(" ", ".", ":", "-", "=", "+", "*", "#", "%", "$", "@" ) for y = -1.0 to 1.0 step 0.05 for x = -1.5 to 1.5 step 0.025 zr=x zi=y i=0 do while i < 100 zr1 = zr*zr - zi*zi - 0.79 zi=zr * zi * 2 + 0.15 zr=zr1 if (zr*zr + zi*zi) > 4. then exit do i = i + 1 ...
set_time_limit(300); header("Content-Type: image/png"); class Julia { static private $started = false; public static function start() { if (!self::$started) { self::$started = true; new self; } } const AXIS_REAL = 0; const AXIS_IMAGINARY = 1; const C = [-0.75, 0.1]; const RADII = [1, 0.5];...
[ { "role": "user", "content": "\n\n\ncmap=array(\" \", \".\", \":\", \"-\", \"=\", \"+\", \"*\", \"#\", \"%\", \"$\", \"@\" )\nfor y = -1.0 to 1.0 step 0.05\n for x = -1.5 to 1.5 step 0.025\n zr=x\n zi=y\n i=0\n do while i < 100\n zr1 = zr*zr - zi*zi - 0.79 \n zi=zr * zi * 2 + 0.15\n...
67
MD4
#include <stdlib.h> #include <string.h> #include <stdint.h> char *MD4(char *str, int len); typedef struct string{ char *c; int len; char sign; }string; static uint32_t *MD4Digest(uint32_t *w, int len); static void setMD4Registers(uint32_t AA, uint32_t BB, uint32_t CC, uint32_t DD); static...
using System; using System.Collections.Generic; using System.Linq; using System.Text; static class Md4 { public static string Md4Hash(this string input) { List<byte> bytes = Encoding.ASCII.GetBytes(input).ToList(); uint bitCount = (uint)(bytes.Count) * 8; bytes.Add(128); ...
null
null
null
null
null
null
[ { "role": "user", "content": "\n\n\n#include <stdlib.h>\n#include <string.h>\n#include <stdint.h>\n\nchar *MD4(char *str, int len); \n\ntypedef struct string{\n char *c;\n int len;\n char sign;\n}string;\n\nstatic uint32_t *MD4Digest(uint32_t *w, int len);\nstatic void setMD4Registers(u...
68
MD4
#include <stdlib.h> #include <string.h> #include <stdint.h> char *MD4(char *str, int len); typedef struct string{ char *c; int len; char sign; }string; static uint32_t *MD4Digest(uint32_t *w, int len); static void setMD4Registers(uint32_t AA, uint32_t BB, uint32_t CC, uint32_t DD); static...
using System; using System.Collections.Generic; using System.Linq; using System.Text; static class Md4 { public static string Md4Hash(this string input) { List<byte> bytes = Encoding.ASCII.GetBytes(input).ToList(); uint bitCount = (uint)(bytes.Count) * 8; bytes.Add(128); ...
null
null
null
null
null
null
[ { "role": "user", "content": "\n\n\n#include <stdlib.h>\n#include <string.h>\n#include <stdint.h>\n\nchar *MD4(char *str, int len); \n\ntypedef struct string{\n char *c;\n int len;\n char sign;\n}string;\n\nstatic uint32_t *MD4Digest(uint32_t *w, int len);\nstatic void setMD4Registers(u...
69
MD4
#include <stdlib.h> #include <string.h> #include <stdint.h> char *MD4(char *str, int len); typedef struct string{ char *c; int len; char sign; }string; static uint32_t *MD4Digest(uint32_t *w, int len); static void setMD4Registers(uint32_t AA, uint32_t BB, uint32_t CC, uint32_t DD); static...
null
null
package main import ( "golang.org/x/crypto/md4" "fmt" ) func main() { h := md4.New() h.Write([]byte("Rosetta Code")) fmt.Printf("%x\n", h.Sum(nil)) }
null
null
null
null
[ { "role": "user", "content": "\n\n\n#include <stdlib.h>\n#include <string.h>\n#include <stdint.h>\n\nchar *MD4(char *str, int len); \n\ntypedef struct string{\n char *c;\n int len;\n char sign;\n}string;\n\nstatic uint32_t *MD4Digest(uint32_t *w, int len);\nstatic void setMD4Registers(u...
70
MD4
#include <stdlib.h> #include <string.h> #include <stdint.h> char *MD4(char *str, int len); typedef struct string{ char *c; int len; char sign; }string; static uint32_t *MD4Digest(uint32_t *w, int len); static void setMD4Registers(uint32_t AA, uint32_t BB, uint32_t CC, uint32_t DD); static...
null
null
package main import ( "golang.org/x/crypto/md4" "fmt" ) func main() { h := md4.New() h.Write([]byte("Rosetta Code")) fmt.Printf("%x\n", h.Sum(nil)) }
null
null
null
null
[ { "role": "user", "content": "\n\n\n#include <stdlib.h>\n#include <string.h>\n#include <stdint.h>\n\nchar *MD4(char *str, int len); \n\ntypedef struct string{\n char *c;\n int len;\n char sign;\n}string;\n\nstatic uint32_t *MD4Digest(uint32_t *w, int len);\nstatic void setMD4Registers(u...
71
MD4
#include <stdlib.h> #include <string.h> #include <stdint.h> char *MD4(char *str, int len); typedef struct string{ char *c; int len; char sign; }string; static uint32_t *MD4Digest(uint32_t *w, int len); static void setMD4Registers(uint32_t AA, uint32_t BB, uint32_t CC, uint32_t DD); static...
null
null
null
import org.bouncycastle.crypto.digests.MD4Digest; import org.bouncycastle.util.encoders.Hex; public class RosettaMD4 { public static void main (String[] argv) throws Exception { byte[] r = "Rosetta Code".getBytes("US-ASCII"); MD4Digest d = new MD4Digest(); d.update (r, 0, r.length); ...
null
null
null
[ { "role": "user", "content": "\n\n\n#include <stdlib.h>\n#include <string.h>\n#include <stdint.h>\n\nchar *MD4(char *str, int len); \n\ntypedef struct string{\n char *c;\n int len;\n char sign;\n}string;\n\nstatic uint32_t *MD4Digest(uint32_t *w, int len);\nstatic void setMD4Registers(u...
72
MD4
#include <stdlib.h> #include <string.h> #include <stdint.h> char *MD4(char *str, int len); typedef struct string{ char *c; int len; char sign; }string; static uint32_t *MD4Digest(uint32_t *w, int len); static void setMD4Registers(uint32_t AA, uint32_t BB, uint32_t CC, uint32_t DD); static...
null
null
null
null
import hashlib print hashlib.new("md4",raw_input().encode('utf-16le')).hexdigest().upper()
null
null
[ { "role": "user", "content": "\n\n\n#include <stdlib.h>\n#include <string.h>\n#include <stdint.h>\n\nchar *MD4(char *str, int len); \n\ntypedef struct string{\n char *c;\n int len;\n char sign;\n}string;\n\nstatic uint32_t *MD4Digest(uint32_t *w, int len);\nstatic void setMD4Registers(u...
73
MD4
null
using System; using System.Collections.Generic; using System.Linq; using System.Text; static class Md4 { public static string Md4Hash(this string input) { List<byte> bytes = Encoding.ASCII.GetBytes(input).ToList(); uint bitCount = (uint)(bytes.Count) * 8; bytes.Add(128); ...
null
package main import ( "golang.org/x/crypto/md4" "fmt" ) func main() { h := md4.New() h.Write([]byte("Rosetta Code")) fmt.Printf("%x\n", h.Sum(nil)) }
null
null
null
null
[ { "role": "user", "content": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nstatic class Md4\n{\n public static string Md4Hash(this string input)\n {\n \n List<byte> bytes = Encoding.ASCII.GetBytes(input).ToList();\n uint bitCount = (uin...
74
MD4
null
using System; using System.Collections.Generic; using System.Linq; using System.Text; static class Md4 { public static string Md4Hash(this string input) { List<byte> bytes = Encoding.ASCII.GetBytes(input).ToList(); uint bitCount = (uint)(bytes.Count) * 8; bytes.Add(128); ...
null
null
import org.bouncycastle.crypto.digests.MD4Digest; import org.bouncycastle.util.encoders.Hex; public class RosettaMD4 { public static void main (String[] argv) throws Exception { byte[] r = "Rosetta Code".getBytes("US-ASCII"); MD4Digest d = new MD4Digest(); d.update (r, 0, r.length); ...
null
null
null
[ { "role": "user", "content": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nstatic class Md4\n{\n public static string Md4Hash(this string input)\n {\n \n List<byte> bytes = Encoding.ASCII.GetBytes(input).ToList();\n uint bitCount = (uin...
75
MD4
null
using System; using System.Collections.Generic; using System.Linq; using System.Text; static class Md4 { public static string Md4Hash(this string input) { List<byte> bytes = Encoding.ASCII.GetBytes(input).ToList(); uint bitCount = (uint)(bytes.Count) * 8; bytes.Add(128); ...
null
null
null
import hashlib print hashlib.new("md4",raw_input().encode('utf-16le')).hexdigest().upper()
null
null
[ { "role": "user", "content": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nstatic class Md4\n{\n public static string Md4Hash(this string input)\n {\n \n List<byte> bytes = Encoding.ASCII.GetBytes(input).ToList();\n uint bitCount = (uin...
76
MD4
null
null
null
package main import ( "golang.org/x/crypto/md4" "fmt" ) func main() { h := md4.New() h.Write([]byte("Rosetta Code")) fmt.Printf("%x\n", h.Sum(nil)) }
import org.bouncycastle.crypto.digests.MD4Digest; import org.bouncycastle.util.encoders.Hex; public class RosettaMD4 { public static void main (String[] argv) throws Exception { byte[] r = "Rosetta Code".getBytes("US-ASCII"); MD4Digest d = new MD4Digest(); d.update (r, 0, r.length); ...
null
null
null
[ { "role": "user", "content": "package main\n\nimport (\n \"golang.org/x/crypto/md4\"\n \"fmt\"\n)\n\nfunc main() {\n h := md4.New()\n h.Write([]byte(\"Rosetta Code\"))\n fmt.Printf(\"%x\\n\", h.Sum(nil))\n}\n" }, { "role": "assistant", "content": "import org.bouncycastle.crypto.di...
77
MD4
null
null
null
null
import org.bouncycastle.crypto.digests.MD4Digest; import org.bouncycastle.util.encoders.Hex; public class RosettaMD4 { public static void main (String[] argv) throws Exception { byte[] r = "Rosetta Code".getBytes("US-ASCII"); MD4Digest d = new MD4Digest(); d.update (r, 0, r.length); ...
import hashlib print hashlib.new("md4",raw_input().encode('utf-16le')).hexdigest().upper()
null
null
[ { "role": "user", "content": "import org.bouncycastle.crypto.digests.MD4Digest;\nimport org.bouncycastle.util.encoders.Hex;\n\npublic class RosettaMD4\n{\n public static void main (String[] argv) throws Exception\n {\n byte[] r = \"Rosetta Code\".getBytes(\"US-ASCII\");\n MD4Digest d = n...
78
MD4
null
null
null
null
import org.bouncycastle.crypto.digests.MD4Digest; import org.bouncycastle.util.encoders.Hex; public class RosettaMD4 { public static void main (String[] argv) throws Exception { byte[] r = "Rosetta Code".getBytes("US-ASCII"); MD4Digest d = new MD4Digest(); d.update (r, 0, r.length); ...
import hashlib print hashlib.new("md4",raw_input().encode('utf-16le')).hexdigest().upper()
null
null
[ { "role": "user", "content": "import org.bouncycastle.crypto.digests.MD4Digest;\nimport org.bouncycastle.util.encoders.Hex;\n\npublic class RosettaMD4\n{\n public static void main (String[] argv) throws Exception\n {\n byte[] r = \"Rosetta Code\".getBytes(\"US-ASCII\");\n MD4Digest d = n...
79
MD4
#include <stdlib.h> #include <string.h> #include <stdint.h> char *MD4(char *str, int len); typedef struct string{ char *c; int len; char sign; }string; static uint32_t *MD4Digest(uint32_t *w, int len); static void setMD4Registers(uint32_t AA, uint32_t BB, uint32_t CC, uint32_t DD); static...
null
null
null
import org.bouncycastle.crypto.digests.MD4Digest; import org.bouncycastle.util.encoders.Hex; public class RosettaMD4 { public static void main (String[] argv) throws Exception { byte[] r = "Rosetta Code".getBytes("US-ASCII"); MD4Digest d = new MD4Digest(); d.update (r, 0, r.length); ...
null
null
null
[ { "role": "user", "content": "\n\n\n#include <stdlib.h>\n#include <string.h>\n#include <stdint.h>\n\nchar *MD4(char *str, int len); \n\ntypedef struct string{\n char *c;\n int len;\n char sign;\n}string;\n\nstatic uint32_t *MD4Digest(uint32_t *w, int len);\nstatic void setMD4Registers(u...
80
MD4
null
using System; using System.Collections.Generic; using System.Linq; using System.Text; static class Md4 { public static string Md4Hash(this string input) { List<byte> bytes = Encoding.ASCII.GetBytes(input).ToList(); uint bitCount = (uint)(bytes.Count) * 8; bytes.Add(128); ...
null
package main import ( "golang.org/x/crypto/md4" "fmt" ) func main() { h := md4.New() h.Write([]byte("Rosetta Code")) fmt.Printf("%x\n", h.Sum(nil)) }
null
null
null
null
[ { "role": "user", "content": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nstatic class Md4\n{\n public static string Md4Hash(this string input)\n {\n \n List<byte> bytes = Encoding.ASCII.GetBytes(input).ToList();\n uint bitCount = (uin...
81
MD4
null
using System; using System.Collections.Generic; using System.Linq; using System.Text; static class Md4 { public static string Md4Hash(this string input) { List<byte> bytes = Encoding.ASCII.GetBytes(input).ToList(); uint bitCount = (uint)(bytes.Count) * 8; bytes.Add(128); ...
null
null
null
import hashlib print hashlib.new("md4",raw_input().encode('utf-16le')).hexdigest().upper()
null
null
[ { "role": "user", "content": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nstatic class Md4\n{\n public static string Md4Hash(this string input)\n {\n \n List<byte> bytes = Encoding.ASCII.GetBytes(input).ToList();\n uint bitCount = (uin...
82
MD4
null
null
null
package main import ( "golang.org/x/crypto/md4" "fmt" ) func main() { h := md4.New() h.Write([]byte("Rosetta Code")) fmt.Printf("%x\n", h.Sum(nil)) }
import org.bouncycastle.crypto.digests.MD4Digest; import org.bouncycastle.util.encoders.Hex; public class RosettaMD4 { public static void main (String[] argv) throws Exception { byte[] r = "Rosetta Code".getBytes("US-ASCII"); MD4Digest d = new MD4Digest(); d.update (r, 0, r.length); ...
null
null
null
[ { "role": "user", "content": "package main\n\nimport (\n \"golang.org/x/crypto/md4\"\n \"fmt\"\n)\n\nfunc main() {\n h := md4.New()\n h.Write([]byte(\"Rosetta Code\"))\n fmt.Printf(\"%x\\n\", h.Sum(nil))\n}\n" }, { "role": "assistant", "content": "import org.bouncycastle.crypto.di...
83
MD4
null
null
null
package main import ( "golang.org/x/crypto/md4" "fmt" ) func main() { h := md4.New() h.Write([]byte("Rosetta Code")) fmt.Printf("%x\n", h.Sum(nil)) }
null
import hashlib print hashlib.new("md4",raw_input().encode('utf-16le')).hexdigest().upper()
null
null
[ { "role": "user", "content": "package main\n\nimport (\n \"golang.org/x/crypto/md4\"\n \"fmt\"\n)\n\nfunc main() {\n h := md4.New()\n h.Write([]byte(\"Rosetta Code\"))\n fmt.Printf(\"%x\\n\", h.Sum(nil))\n}\n" }, { "role": "assistant", "content": "import hashlib\nprint hashlib.new...
84
MD4
#include <stdlib.h> #include <string.h> #include <stdint.h> char *MD4(char *str, int len); typedef struct string{ char *c; int len; char sign; }string; static uint32_t *MD4Digest(uint32_t *w, int len); static void setMD4Registers(uint32_t AA, uint32_t BB, uint32_t CC, uint32_t DD); static...
null
null
null
null
import hashlib print hashlib.new("md4",raw_input().encode('utf-16le')).hexdigest().upper()
null
null
[ { "role": "user", "content": "\n\n\n#include <stdlib.h>\n#include <string.h>\n#include <stdint.h>\n\nchar *MD4(char *str, int len); \n\ntypedef struct string{\n char *c;\n int len;\n char sign;\n}string;\n\nstatic uint32_t *MD4Digest(uint32_t *w, int len);\nstatic void setMD4Registers(u...
85
MD4
null
using System; using System.Collections.Generic; using System.Linq; using System.Text; static class Md4 { public static string Md4Hash(this string input) { List<byte> bytes = Encoding.ASCII.GetBytes(input).ToList(); uint bitCount = (uint)(bytes.Count) * 8; bytes.Add(128); ...
null
null
import org.bouncycastle.crypto.digests.MD4Digest; import org.bouncycastle.util.encoders.Hex; public class RosettaMD4 { public static void main (String[] argv) throws Exception { byte[] r = "Rosetta Code".getBytes("US-ASCII"); MD4Digest d = new MD4Digest(); d.update (r, 0, r.length); ...
null
null
null
[ { "role": "user", "content": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nstatic class Md4\n{\n public static string Md4Hash(this string input)\n {\n \n List<byte> bytes = Encoding.ASCII.GetBytes(input).ToList();\n uint bitCount = (uin...
86
MD4
null
null
null
package main import ( "golang.org/x/crypto/md4" "fmt" ) func main() { h := md4.New() h.Write([]byte("Rosetta Code")) fmt.Printf("%x\n", h.Sum(nil)) }
null
import hashlib print hashlib.new("md4",raw_input().encode('utf-16le')).hexdigest().upper()
null
null
[ { "role": "user", "content": "package main\n\nimport (\n \"golang.org/x/crypto/md4\"\n \"fmt\"\n)\n\nfunc main() {\n h := md4.New()\n h.Write([]byte(\"Rosetta Code\"))\n fmt.Printf(\"%x\\n\", h.Sum(nil))\n}\n" }, { "role": "assistant", "content": "import hashlib\nprint hashlib.new...
87
MD4
#include <stdlib.h> #include <string.h> #include <stdint.h> char *MD4(char *str, int len); typedef struct string{ char *c; int len; char sign; }string; static uint32_t *MD4Digest(uint32_t *w, int len); static void setMD4Registers(uint32_t AA, uint32_t BB, uint32_t CC, uint32_t DD); static...
null
null
null
null
import hashlib print hashlib.new("md4",raw_input().encode('utf-16le')).hexdigest().upper()
null
null
[ { "role": "user", "content": "\n\n\n#include <stdlib.h>\n#include <string.h>\n#include <stdint.h>\n\nchar *MD4(char *str, int len); \n\ntypedef struct string{\n char *c;\n int len;\n char sign;\n}string;\n\nstatic uint32_t *MD4Digest(uint32_t *w, int len);\nstatic void setMD4Registers(u...
88
MD4
null
using System; using System.Collections.Generic; using System.Linq; using System.Text; static class Md4 { public static string Md4Hash(this string input) { List<byte> bytes = Encoding.ASCII.GetBytes(input).ToList(); uint bitCount = (uint)(bytes.Count) * 8; bytes.Add(128); ...
null
null
import org.bouncycastle.crypto.digests.MD4Digest; import org.bouncycastle.util.encoders.Hex; public class RosettaMD4 { public static void main (String[] argv) throws Exception { byte[] r = "Rosetta Code".getBytes("US-ASCII"); MD4Digest d = new MD4Digest(); d.update (r, 0, r.length); ...
null
null
null
[ { "role": "user", "content": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nstatic class Md4\n{\n public static string Md4Hash(this string input)\n {\n \n List<byte> bytes = Encoding.ASCII.GetBytes(input).ToList();\n uint bitCount = (uin...
89
MD4
null
null
null
package main import ( "golang.org/x/crypto/md4" "fmt" ) func main() { h := md4.New() h.Write([]byte("Rosetta Code")) fmt.Printf("%x\n", h.Sum(nil)) }
null
import hashlib print hashlib.new("md4",raw_input().encode('utf-16le')).hexdigest().upper()
null
null
[ { "role": "user", "content": "package main\n\nimport (\n \"golang.org/x/crypto/md4\"\n \"fmt\"\n)\n\nfunc main() {\n h := md4.New()\n h.Write([]byte(\"Rosetta Code\"))\n fmt.Printf(\"%x\\n\", h.Sum(nil))\n}\n" }, { "role": "assistant", "content": "import hashlib\nprint hashlib.new...
90
MD4
#include <stdlib.h> #include <string.h> #include <stdint.h> char *MD4(char *str, int len); typedef struct string{ char *c; int len; char sign; }string; static uint32_t *MD4Digest(uint32_t *w, int len); static void setMD4Registers(uint32_t AA, uint32_t BB, uint32_t CC, uint32_t DD); static...
null
null
null
null
null
null
echo hash('md4', "Rosetta Code"), "\n";
[ { "role": "user", "content": "\n\n\n#include <stdlib.h>\n#include <string.h>\n#include <stdint.h>\n\nchar *MD4(char *str, int len); \n\ntypedef struct string{\n char *c;\n int len;\n char sign;\n}string;\n\nstatic uint32_t *MD4Digest(uint32_t *w, int len);\nstatic void setMD4Registers(u...
91
MD4
#include <stdlib.h> #include <string.h> #include <stdint.h> char *MD4(char *str, int len); typedef struct string{ char *c; int len; char sign; }string; static uint32_t *MD4Digest(uint32_t *w, int len); static void setMD4Registers(uint32_t AA, uint32_t BB, uint32_t CC, uint32_t DD); static...
null
null
null
null
null
null
echo hash('md4', "Rosetta Code"), "\n";
[ { "role": "user", "content": "\n\n\n#include <stdlib.h>\n#include <string.h>\n#include <stdint.h>\n\nchar *MD4(char *str, int len); \n\ntypedef struct string{\n char *c;\n int len;\n char sign;\n}string;\n\nstatic uint32_t *MD4Digest(uint32_t *w, int len);\nstatic void setMD4Registers(u...
92
MD4
null
using System; using System.Collections.Generic; using System.Linq; using System.Text; static class Md4 { public static string Md4Hash(this string input) { List<byte> bytes = Encoding.ASCII.GetBytes(input).ToList(); uint bitCount = (uint)(bytes.Count) * 8; bytes.Add(128); ...
null
null
null
null
null
echo hash('md4', "Rosetta Code"), "\n";
[ { "role": "user", "content": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nstatic class Md4\n{\n public static string Md4Hash(this string input)\n {\n \n List<byte> bytes = Encoding.ASCII.GetBytes(input).ToList();\n uint bitCount = (uin...
93
MD4
null
using System; using System.Collections.Generic; using System.Linq; using System.Text; static class Md4 { public static string Md4Hash(this string input) { List<byte> bytes = Encoding.ASCII.GetBytes(input).ToList(); uint bitCount = (uint)(bytes.Count) * 8; bytes.Add(128); ...
null
null
null
null
null
echo hash('md4', "Rosetta Code"), "\n";
[ { "role": "user", "content": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nstatic class Md4\n{\n public static string Md4Hash(this string input)\n {\n \n List<byte> bytes = Encoding.ASCII.GetBytes(input).ToList();\n uint bitCount = (uin...
94
MD4
null
null
null
package main import ( "golang.org/x/crypto/md4" "fmt" ) func main() { h := md4.New() h.Write([]byte("Rosetta Code")) fmt.Printf("%x\n", h.Sum(nil)) }
null
null
null
echo hash('md4', "Rosetta Code"), "\n";
[ { "role": "user", "content": "package main\n\nimport (\n \"golang.org/x/crypto/md4\"\n \"fmt\"\n)\n\nfunc main() {\n h := md4.New()\n h.Write([]byte(\"Rosetta Code\"))\n fmt.Printf(\"%x\\n\", h.Sum(nil))\n}\n" }, { "role": "assistant", "content": "echo hash('md4', \"Rosetta Code\"...
95
MD4
null
null
null
package main import ( "golang.org/x/crypto/md4" "fmt" ) func main() { h := md4.New() h.Write([]byte("Rosetta Code")) fmt.Printf("%x\n", h.Sum(nil)) }
null
null
null
echo hash('md4', "Rosetta Code"), "\n";
[ { "role": "user", "content": "package main\n\nimport (\n \"golang.org/x/crypto/md4\"\n \"fmt\"\n)\n\nfunc main() {\n h := md4.New()\n h.Write([]byte(\"Rosetta Code\"))\n fmt.Printf(\"%x\\n\", h.Sum(nil))\n}\n" }, { "role": "assistant", "content": "echo hash('md4', \"Rosetta Code\"...
96
MD4
null
null
null
package main import ( "golang.org/x/crypto/md4" "fmt" ) func main() { h := md4.New() h.Write([]byte("Rosetta Code")) fmt.Printf("%x\n", h.Sum(nil)) }
null
null
null
echo hash('md4', "Rosetta Code"), "\n";
[ { "role": "user", "content": "package main\n\nimport (\n \"golang.org/x/crypto/md4\"\n \"fmt\"\n)\n\nfunc main() {\n h := md4.New()\n h.Write([]byte(\"Rosetta Code\"))\n fmt.Printf(\"%x\\n\", h.Sum(nil))\n}\n" }, { "role": "assistant", "content": "echo hash('md4', \"Rosetta Code\"...
97
MD4
null
null
null
package main import ( "golang.org/x/crypto/md4" "fmt" ) func main() { h := md4.New() h.Write([]byte("Rosetta Code")) fmt.Printf("%x\n", h.Sum(nil)) }
null
null
null
echo hash('md4', "Rosetta Code"), "\n";
[ { "role": "user", "content": "package main\n\nimport (\n \"golang.org/x/crypto/md4\"\n \"fmt\"\n)\n\nfunc main() {\n h := md4.New()\n h.Write([]byte(\"Rosetta Code\"))\n fmt.Printf(\"%x\\n\", h.Sum(nil))\n}\n" }, { "role": "assistant", "content": "echo hash('md4', \"Rosetta Code\"...
98
MD4
null
null
null
null
import org.bouncycastle.crypto.digests.MD4Digest; import org.bouncycastle.util.encoders.Hex; public class RosettaMD4 { public static void main (String[] argv) throws Exception { byte[] r = "Rosetta Code".getBytes("US-ASCII"); MD4Digest d = new MD4Digest(); d.update (r, 0, r.length); ...
null
null
echo hash('md4', "Rosetta Code"), "\n";
[ { "role": "user", "content": "import org.bouncycastle.crypto.digests.MD4Digest;\nimport org.bouncycastle.util.encoders.Hex;\n\npublic class RosettaMD4\n{\n public static void main (String[] argv) throws Exception\n {\n byte[] r = \"Rosetta Code\".getBytes(\"US-ASCII\");\n MD4Digest d = n...
99
MD4
null
null
null
null
import org.bouncycastle.crypto.digests.MD4Digest; import org.bouncycastle.util.encoders.Hex; public class RosettaMD4 { public static void main (String[] argv) throws Exception { byte[] r = "Rosetta Code".getBytes("US-ASCII"); MD4Digest d = new MD4Digest(); d.update (r, 0, r.length); ...
null
null
echo hash('md4', "Rosetta Code"), "\n";
[ { "role": "user", "content": "import org.bouncycastle.crypto.digests.MD4Digest;\nimport org.bouncycastle.util.encoders.Hex;\n\npublic class RosettaMD4\n{\n public static void main (String[] argv) throws Exception\n {\n byte[] r = \"Rosetta Code\".getBytes(\"US-ASCII\");\n MD4Digest d = n...
100
MD4
null
null
null
null
import org.bouncycastle.crypto.digests.MD4Digest; import org.bouncycastle.util.encoders.Hex; public class RosettaMD4 { public static void main (String[] argv) throws Exception { byte[] r = "Rosetta Code".getBytes("US-ASCII"); MD4Digest d = new MD4Digest(); d.update (r, 0, r.length); ...
null
null
echo hash('md4', "Rosetta Code"), "\n";
[ { "role": "user", "content": "import org.bouncycastle.crypto.digests.MD4Digest;\nimport org.bouncycastle.util.encoders.Hex;\n\npublic class RosettaMD4\n{\n public static void main (String[] argv) throws Exception\n {\n byte[] r = \"Rosetta Code\".getBytes(\"US-ASCII\");\n MD4Digest d = n...