摘要: 单词数 Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 44427 Accepted Submission(s): 10840 Problem D 阅读全文
posted @ 2016-07-17 22:38 俺叫王梦涵 阅读(289) 评论(1) 推荐(0) 编辑
摘要: A. Football time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A. Football time limit per t 阅读全文
posted @ 2016-07-17 10:48 俺叫王梦涵 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 异或运算的基础有点忘记了 先介绍一下。。2个数异或 就是对于每一个二进制位进行位运算 具有2个特殊的性质 1、一个数异或本身恒等于0,如5^5恒等于0; 2、一个数异或0恒等于本身,如5^0恒等于5。 3 满足交换律 1.交换数字 这个性质能利用与交换数字 先考虑加减改变法。 a=a+b b=a-b 阅读全文
posted @ 2016-07-06 13:40 俺叫王梦涵 阅读(212) 评论(1) 推荐(1) 编辑
摘要: A. Winner time limit per test 1 second memory limit per test 64 megabytes input standard input output standard output The winner of the card game popu 阅读全文
posted @ 2016-06-21 11:54 俺叫王梦涵 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 给出A(x0, y0) B(x1, y1) C(x2, y2) 1.求3边a,b,c 2. 先求外接圆半径。(一定存在) 海伦公式 + 正弦定理 得 R = a * b * c / (4 * S) S = sqrt(q * (q - a) * (q - b) * (q -c)); q = (a + 阅读全文
posted @ 2016-06-21 00:06 俺叫王梦涵 阅读(441) 评论(0) 推荐(0) 编辑
摘要: Problem Description Pass a year learning in Hangzhou, yifenfei arrival hometown Ningbo at finally. Leave Ningbo one year, yifenfei have many people to 阅读全文
posted @ 2016-06-07 01:45 俺叫王梦涵 阅读(229) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std; int m,n; int cnt; char mapp[105][105]; int dir[4][2]={1,0,-1,0,0,1,0,-1}; struct node { int x; int y; }; void BFS(int x,int y) { node now,next; ... 阅读全文
posted @ 2016-06-06 22:42 俺叫王梦涵 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 这是一个求一个排序的下一个排列的函数,可以遍历全排列,要包含头文件<algorithm>下面是以前的笔记 与之完全相反的函数还有prev_permutation (1) int 类型的next_permutation int main(){ int a[3];a[0]=1;a[1]=2;a[2]=3 阅读全文
posted @ 2016-05-29 17:06 俺叫王梦涵 阅读(168) 评论(0) 推荐(0) 编辑
摘要: #include <opencv2/opencv.hpp>#include <opencv2/core/core.hpp>#include <opencv2/highgui/highgui.hpp>#include <iostream>using namespace std;using namesp 阅读全文
posted @ 2016-05-23 03:09 俺叫王梦涵 阅读(2586) 评论(2) 推荐(0) 编辑
摘要: Vasya works as a watchman in the gallery. Unfortunately, one of the most expensive paintings was stolen while he was on duty. He doesn't want to be fi 阅读全文
posted @ 2016-05-23 03:08 俺叫王梦涵 阅读(172) 评论(0) 推荐(0) 编辑