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
// | |
// Created by 方朋 on 2017/1/4. | |
// | |
#include <stdio.h> | |
#include <stdlib.h> | |
#define OK 1 | |
#define ERROR 0 |
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
// | |
// Created by 方朋 on 2017/1/6. | |
// | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
#define OK 1 | |
#define ERROR 0 | |
#define TRUE 1 |
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> | |
#include <stdlib.h> | |
#define OK 1 | |
#define ERROR 0 | |
#define TRUE 1 | |
#define FALSE 0 | |
#define MAXSIZE 40 /* 存储空间初始分配量 */ |
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
# coding=utf-8 | |
n = int(raw_input().strip()) | |
item = [int(x) for x in raw_input().strip().split()] | |
def huiwen(item, head, tail): | |
times=0 | |
left = item[head] | |
right = item[tail] | |
while (head < tail): |
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
# coding=utf-8 | |
__author__ = 'fang' | |
import os | |
import uuid | |
import time | |
from common.qn import qiNiu | |
import urllib2 | |
import cStringIO | |
from PIL import Image | |
from settings import image_collections |
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
// | |
// Created by 方朋 on 16/12/20. | |
// | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include "global.h" | |
/* |
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
// | |
// Created by 方朋 on 16/12/20. | |
// | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include "global.h" | |
/* |
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
/* | |
* ADT 队列(Queue) | |
* Data | |
* 同线性表。元素具有相同的类型,相邻元素具有前驱和后继关系。 | |
* Operation | |
* InitQueue(*Q) // 初始化, 建立一个空队列 | |
* DestroyQueue(*Q) // 若Q存在则销毁队列 | |
* ClearQueue(*Q) // 将队列Q清空 | |
* QueueEmpty(Q) // 是否为空 |
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
// | |
// Created by 方朋 on 16/12/20. | |
// | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include "global.h" | |
/* |
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
// | |
// Created by 方朋 on 16/12/20. | |
// | |
#include <stdio.h> | |
#include "global.h" | |
/* | |
* ADT 栈(stack) |