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 <cstdio> | |
#include <cstring> | |
#include <algorithm> | |
#include <cmath> | |
using namespace std; | |
typedef struct | |
{ | |
int x; | |
int y; | |
}TPoint; |
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<cstdio> | |
#include<cstring> | |
bool pr[110]; | |
void init() | |
{ | |
int i,j; | |
memset(pr,true,sizeof(pr)); | |
pr[0]=pr[1]=false; |
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 <string.h> | |
#include <math.h> | |
int main() | |
{ | |
int prime[100]; | |
for (int i = 10; i <= 99; i++) | |
{ | |
int f = 1; | |
for (int j = 2; j <= sqrt(i); j++) |
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 <cstdio> | |
#include <cstring> | |
#include <algorithm> | |
#include <cmath> | |
#define z0(x) memset(x, 0, sizeof(x)) | |
#define z1(x) memset(x, -1, sizeof(x)) | |
#define N 150010 | |
using namespace std; | |
typedef struct star{ |
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<iostream> | |
#include<cstdio> | |
#include<cstring> | |
using namespace std; | |
const int MAXN = 32005; | |
int c[MAXN],level[MAXN],n; | |
int lowbit(int x){return x & (-x);} |
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> | |
#define _c '*' | |
#define _s ' ' | |
#define _n '\n' | |
#define ____ & | |
#define _______ putchar | |
const int _____ = 8; | |
#define ___ for (int __ = 0; __ < _____; __++) | |
#define ______(a,b,c) if a b; else c; |
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> | |
#define _c '*' | |
#define _s ' ' | |
#define _n '\n' | |
#define ____ & | |
#define _______ putchar | |
const int _____ = 8; | |
#define ___ for (int __ = 0; __ < _____; __++) | |
#define ______(a,b,c) if a b; else c; |
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
Here are some message about my gdt,idt, tss and page table. | |
=======TSS========== | |
tr:s=0x2b, base=0x00000000005d4040, valid=1 | |
ss:esp(0): 0x0010:0x1ffeff9c | |
ss:esp(1): 0x0000:0x00000000 | |
ss:esp(2): 0x0000:0x00000000 | |
cr3: 0x00000000 | |
eip: 0x00000000 | |
eflags: 0x00000000 |
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
// printl.c | |
#ifdef DEBUG | |
inline void printl(const char *fmt, ...){ \ | |
char buf[256]; \ | |
va_list args; \ | |
int i; \ | |
\ | |
memset(buf, 0, sizeof(buf)); \ | |
va_start(args, fmt); \ | |
vsprintk(buf, fmt, args); \ |
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
function.cpp: | |
- void Initialize(p) | |
+ void Initialize() | |
main.cpp | |
- Initialize(p); | |
- Initialize(); | |
OlderNewer