06 2016 档案

摘要:时间限制:3000 ms | 内存限制:65535 KB 难度:4 时间限制:3000 ms | 内存限制:65535 KB 难度:4 1 2 #include <stdio.h> 3 #include <string.h> 4 #include <stdlib.h> 5 typedef struc 阅读全文
posted @ 2016-06-30 07:22 PKICA 阅读(231) 评论(0) 推荐(0) 编辑
摘要:ubuntu安装DDD: #sudo apt-get build-dep ddd #sudo apt-get build-dep ddd 阅读全文
posted @ 2016-06-29 21:28 PKICA 阅读(563) 评论(0) 推荐(0) 编辑
摘要:#include #include #include typedef struct SKI{ int data; int x; int y; char flag; int len; }STSKI; int compare(const void * i1, const void *i2){ STSKI 阅读全文
posted @ 2016-06-26 20:59 PKICA 阅读(324) 评论(0) 推荐(0) 编辑
摘要:http://www.geeksforgeeks.org/write-a-c-program-to-print-all-permutations-of-a-given-string/ http://www.cs.utexas.edu/users/djimenez/utsa/cs3343/lectur 阅读全文
posted @ 2016-06-20 22:17 PKICA 阅读(265) 评论(0) 推荐(0) 编辑
摘要:#dig www.baidu.com ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.37.rc1.el6 <<>> www.baidu.com;; global options: +cmd;; Got answer:;; ->>HEADER<<- opcode: QUERY, 阅读全文
posted @ 2016-06-18 21:06 PKICA 阅读(236) 评论(0) 推荐(0) 编辑
摘要:时间限制:3000 ms | 内存限制:65535 KB 难度:3 阅读全文
posted @ 2016-06-16 07:04 PKICA 阅读(203) 评论(0) 推荐(0) 编辑
摘要:时间限制:3000 ms | 内存限制:65535 KB 难度:5 时间限制:3000 ms | 内存限制:65535 KB 难度:5 设平面上有N 个离散数据点( xi , yi ) ( i = 1, 2, ., n) , 其多边形重心G( . x1, . y1) 为: 这是求多边形最简单直观的方 阅读全文
posted @ 2016-06-15 07:10 PKICA 阅读(696) 评论(0) 推荐(0) 编辑
摘要:时间限制:3000 ms | 内存限制:65535 KB 难度:4 n为奇偶数时,要分清况。|a1|-|x|+|x|-|a2+……+||<=|a1-x|+|a2-x|+………+|an-x| //v0.01 C #include <stdio.h>#include <stdlib.h>int main 阅读全文
posted @ 2016-06-14 22:08 PKICA 阅读(260) 评论(0) 推荐(0) 编辑
摘要:时间限制:3000 ms | 内存限制:65535 KB 难度:1 //迭代 C 时间复杂度是0(n),时间复杂度是0(1)。 #include<stdio.h>int f(int n);int main(){ int n; int i; int m; scanf("%d",&m); getchar 阅读全文
posted @ 2016-06-13 22:21 PKICA 阅读(261) 评论(0) 推荐(0) 编辑
摘要://优秀代码 c++ #include<iostream>#include<string>using namespace std;int main(){ string s1,s2; int n; cin>>n; while(n--) { cin>>s1>>s2; unsigned int m=s2. 阅读全文
posted @ 2016-06-07 07:12 PKICA 阅读(152) 评论(0) 推荐(0) 编辑
摘要:时间限制:3000 ms | 内存限制:65535 KB 难度:3 1 #include <stdlib.h> 2 #include <stdio.h> 3 #include <string> 4 #include <string.h> 5 #include <iostream> 6 #includ 阅读全文
posted @ 2016-06-05 17:20 PKICA 阅读(183) 评论(0) 推荐(0) 编辑
摘要:时间限制:3000 ms | 内存限制:65535 KB 难度:2 时间限制:3000 ms | 内存限制:65535 KB 难度:2 阅读全文
posted @ 2016-06-05 10:23 PKICA 阅读(780) 评论(0) 推荐(0) 编辑