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
#include <stdio.h> | |
int m = 1811939329, N = 1, t[1 << 26] = { 2 }, a, *p, i, e = 73421233, s, c, U = 1; | |
void g(int d, int h) | |
{ | |
for (i = s; i < 1 << 25; i *= 2) | |
d = d * 1LL * d % m; | |
for (p = t; p < t + N; p += s) | |
for (i = s, c = 1; i; i--) |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define ARRAY_SIZE 128000 | |
int main(int argc, char **argv) | |
{ | |
int casas = argc == 2 ? atoi(argv[1]) : 1000; | |
int x[ARRAY_SIZE]; |
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
#include <stdio.h> | |
#include <malloc.h> | |
#include <string.h> | |
#if __USE_SSE__ | |
void reverse(char *begin, char *end) | |
{ | |
_asm | |
{ | |
mov edx, DWORD PTR[begin] |
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
using System; | |
using System.IO; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace bmpGenerator | |
{ | |
public class ColorX | |
{ |
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
#define system. | |
#define extensions. | |
#class MyNumber | |
{ | |
#field theValue. | |
#constructor new : aValue | |
[ | |
theValue := aValue. |
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
#include <iostream> | |
#include <cstdio> | |
#include <string> | |
#include <vector> | |
#include <stdlib.h> | |
using namespace std; | |
typedef struct _SIZE_ | |
{ |
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
#include <stdio.h> | |
#if _MSC_VER | |
#define ASMDEF __asm | |
#elif __ORANGEC__ || __DMC__ | |
#define ASMDEF asm | |
#endif | |
int xor(int a, int b) | |
{ |
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
// A big special thanks to 'bearophile' ( from dlang forum! ) | |
import std.c.windows.windows: WORD, LONG, DWORD, BYTE, UCHAR, ULONG; | |
struct IMAGE_DOS_HEADER | |
{ | |
WORD e_magic, | |
e_cblp, | |
e_cp, | |
e_crlc, |
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
using System; | |
using System.Collections.Concurrent; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace seno | |
{ |
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
#include <stdio.h> | |
#include <string.h> | |
int fgetline(FILE *fp, char s[], int lim) | |
{ | |
char *t; | |
int c, len=lim; | |
t = s; | |
while (--lim>1 && (c=getc(fp)) != EOF && c != '\n') |
NewerOlder