Codecraft-17 and Codeforces Round #391 (Div. 1 + Div. 2, combined) 23:35~2:35 1.12.2017 |实际 23:35~1:40 A.Gotta Catch Em' All! 题意:妙蛙种子太神了 题解:妙蛙种子太神了 #i ...
分类:
其他 时间:
2017-01-13 22:36:38
收藏:
0 评论:
0 赞:
0 阅读:
329
#include<iostream>#include<string.h>using namespace std;int main(){ int n,i; int t; int cnt; int result; while(scanf("%d",&n)!=EOF) { cnt=0; for(i=0;i ...
分类:
其他 时间:
2017-01-13 22:36:18
收藏:
0 评论:
0 赞:
0 阅读:
291
1 2 3 4 5 6 ueditor demo 7 8 9 10 11 14 15 16 17 18 19 22 23 24 ...
分类:
其他 时间:
2017-01-13 22:35:34
收藏:
0 评论:
0 赞:
0 阅读:
274
2151: 种树 Description A城市有一个巨大的圆形广场,为了绿化环境和净化空气,市政府决定沿圆形广场外圈种一圈树。园林部门得到指令后,初步规划出n个种树的位置,顺时针编号1到n。并且每个位置都有一个美观度Ai,如果在这里种树就可以得到这Ai的美观度。但由于A城市土壤肥力欠佳,两棵树决不 ...
分类:
其他 时间:
2017-01-13 22:34:44
收藏:
0 评论:
0 赞:
0 阅读:
289
logging模块是用来记录日志的,有以下5个级别 logging.info() logging.debug() logging.error()logging.warning() logging.critical() logging模块涉及4个主要的类: logger:提供应用程序可以直接使用的接口 ...
分类:
其他 时间:
2017-01-13 22:33:38
收藏:
0 评论:
0 赞:
0 阅读:
252
#include <stdio.h> #include <string.h> #include <queue> using namespace std; struct node { int x,y,step; friend bool operator<(node n1,node n2) { retu ...
分类:
其他 时间:
2017-01-13 22:33:09
收藏:
0 评论:
0 赞:
0 阅读:
265
#include<stdio.h>#include<string.h>const int MAXN=130;int dp[MAXN][MAXN];//dp[i][j]表示 i 表示成最大的数不超过 j 的方法数int calc(int n,int m){ if(dp[n][m]!=-1) retur ...
分类:
其他 时间:
2017-01-13 22:32:35
收藏:
0 评论:
0 赞:
0 阅读:
143
matrix67 nxt[i]:[1-i]中最长公共前后缀的长度 ...
分类:
其他 时间:
2017-01-13 22:31:05
收藏:
0 评论:
0 赞:
0 阅读:
147
今天主要学习了会话技术:cookie和session,这两个东西很好用啊,也很强大,老师还结合案例给我们进行了演示! 晚上的时候跟随着老师的脚步完善了项目,后面去解决老师留给我们的问题,还是很有意思的,这个问题解决起来倒是不麻烦,加一个判断的条件就可以了,但是,后面还会出现一些新的问题.比方说通过直 ...
分类:
其他 时间:
2017-01-13 22:30:49
收藏:
0 评论:
0 赞:
0 阅读:
127
题目链接:https://www.51nod.com/onlineJudge/questionCode.html#!problemId=1042 题意:中文题诶~ 思路:这道题和前面的51nod1009好像,直接套用那个算法也是能ac的,不过我还是喜欢换个口味; 求a, b之间个数字出现的次数。可以 ...
分类:
其他 时间:
2017-01-13 22:30:31
收藏:
0 评论:
0 赞:
0 阅读:
256
Asterix, Obelix and their temporary buddies Suffix and Prefix has finally found the Harmony temple. However, its doors were firmly locked and even Obe ...
分类:
其他 时间:
2017-01-13 22:30:03
收藏:
0 评论:
0 赞:
0 阅读:
175
#include<stdio.h>#include<math.h>void find(int n,int &l,int &r,int &level){ int i; level=1; for(i=1;;i+=2) { if(n-i<=0) { l=(n+1)/2; r=(i-n)/2+1; brea ...
分类:
其他 时间:
2017-01-13 22:29:48
收藏:
0 评论:
0 赞:
0 阅读:
199
I Can Guess the Data Structure! I Can Guess the Data Structure! I Can Guess the Data Structure! There is a bag-like data structure, supporting two ope ...
分类:
其他 时间:
2017-01-13 22:29:03
收藏:
0 评论:
0 赞:
0 阅读:
294
#!/bin/bashif [ -n "$1" ]; theneth_name=$1elseeth_name="eth0"fi i=0 send_o=`ifconfig $eth_name | grep bytes | awk '{print $6}' | awk -F : '{print $2}' ...
分类:
其他 时间:
2017-01-13 22:28:29
收藏:
0 评论:
0 赞:
0 阅读:
159
http://www.lydsy.com/JudgeOnline/problem.php?id=3238 (题目链接) 题意 给出一个字符串,求${\sum_{1<=i<j<=n} len(T_i)+len(T_j)-2*lcp(T_i,T_j)}$,其中${T_i}$表示i的后缀 Solution ...
分类:
其他 时间:
2017-01-13 22:28:18
收藏:
0 评论:
0 赞:
0 阅读:
436
推箱子 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7831 Accepted Submission(s): 2243 Problem Des ...
分类:
其他 时间:
2017-01-13 22:27:42
收藏:
0 评论:
0 赞:
0 阅读:
340
GPIO分成很多组今天学习的这个芯片的GPIO有GPA-GPJ个组。具体可在芯片手册中看到。 GPIO有很多寄存器,今天学习的这个芯片,他的寄存器分为以下几种类型: (1)端口控制寄存器 (2)端口数据寄存器 (3)PORT PULL-UP REGISTER 端口上拉寄存器 (4)MISCELLAN ...
分类:
其他 时间:
2017-01-13 22:26:48
收藏:
0 评论:
0 赞:
0 阅读:
346
$list=D('category')->where('cat_fid=0')->select();foreach ($list as $k=>$value){ $list[$k]['list']=M('category')->where('cat_fid='.$value['cat_id'])-> ...
分类:
其他 时间:
2017-01-13 22:25:05
收藏:
0 评论:
0 赞:
0 阅读:
186
转自:使用代码去描述WCF配置文件 在应用程序部署的时候,WCF客户端因为服务器地址的变化,需要修改程序配置文件的地址URL,手动修改很不方便,还会造成错误,所以尽量把描述WCF配置文件的配置使用代码方式进行描述,通过在软件中输入服务器IP地址的方式,动态修改访问的URL,这样比较方便,也不会出错, ...
分类:
其他 时间:
2017-01-13 22:22:39
收藏:
0 评论:
0 赞:
0 阅读:
214
Groundhog Build Home Time Limit: 15000/5000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 2647 Accepted Submission(s) ...
分类:
其他 时间:
2017-01-13 22:22:24
收藏:
0 评论:
0 赞:
0 阅读:
273