ob 函数的使用1. 页面静态化$id = isset($_GET['id'])?$_GET['id']-0:0; $filename = "html/".date("Ymd")."/news-id".$id.".html"; if(!file_exists("html/".date("Ymd")) ...
分类:
其他好文 时间:
2018-06-16 15:14:53
阅读次数:
214
题目描述 有一个商店有许多批货,每一批货又有N(0<=N<= 10^4104 )个商品,同时每一样商品都有收益 P_iPi? ,和过期时间 D_iDi? (1<= Pi,DiPi,Di <= 10^4104 ),一旦超过了过期时间,商品就不能再卖。 你要做的就是求出每批货最多能得到多少收益。 输入输 ...
分类:
其他好文 时间:
2018-06-14 22:17:43
阅读次数:
261
题目描述 给定一个N个点M条边的有向无环图,每条边长度都是1。 请找到一个点,使得删掉这个点后剩余的图中的最长路径最短。 输入输出格式 输入格式: 第一行包含两个正整数N,M(2<=N<=500 000,1<=M<=1 000 000),表示点数、边数。 接下来M行每行包含两个正整数A[i],Bi, ...
分类:
其他好文 时间:
2018-06-14 14:34:11
阅读次数:
196
Problem description One day Ms Swan bought an orange in a shop. The orange consisted of n·k segments, numbered with integers from 1 to n·k. There were ...
分类:
其他好文 时间:
2018-06-09 00:02:05
阅读次数:
225
题目背景 《爱与愁的故事第四弹·plant》第一章。 题目描述 爱与愁大神后院里种了n棵樱花树,每棵都有美学值Ci。爱与愁大神在每天上学前都会来赏花。爱与愁大神可是生物学霸,他懂得如何欣赏樱花:一种樱花树看一遍过,一种樱花树最多看Ai遍,一种樱花树可以看无数遍。但是看每棵樱花树都有一定的时间Ti。爱 ...
分类:
其他好文 时间:
2018-06-08 23:18:22
阅读次数:
232
有一个类A,其数据成员如下: 1 2 3 4 5 6 7 8 9 10 class A { ... private: int a; public: const int b; float* &c; static const char* d; static double* e; }; 则构造函数中,成员 ...
分类:
其他好文 时间:
2018-06-06 12:35:54
阅读次数:
133
【链接】: "CF987A" 【分析】:运用map 【代码】: include include include include using namespace std; define N 100010 define M 2005 const int INF = 0x3f3f3f3f; define ...
分类:
其他好文 时间:
2018-06-01 13:20:52
阅读次数:
156
1,Orange网关 Orange是一个基于OpenResty的API网关。除Nginx的基本功能外,它还可用于API监控、访问控制(鉴权、WAF)、流量筛选、访问限速、AB测试、动态分流等。它有以下特性: 提供了一套默认的Dashboard用于动态管理各种功能和配置 提供了API接口用于实现第三方 ...
fr = open('letter.txt',mode='r',encoding='utf-8') plaincode = fr.read() print('明文:' + plaincode) print('密文:',end='') for c in plaincode: print(chr(ord... ...
分类:
其他好文 时间:
2018-05-30 22:51:04
阅读次数:
178
import turtle turtle.speed(10) colors = ['red', 'purple', 'blue', 'green' , 'yellow', 'orange'] for i in range(200): turtle.pencolor(colors[i% 6]) tur ...
分类:
其他好文 时间:
2018-05-30 22:45:00
阅读次数:
185