
什么都不是
fantaticmen
如果有讲的不详细的或者错误的可以加鹅细聊+934591874
展开
-
hdu 5776 抽屉定理
sumTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others) Total Submission(s): 2547 Accepted Submission(s): 973Problem Description Given a sequence, you’re asked whe原创 2017-06-18 23:15:20 · 533 阅读 · 0 评论 -
容斥定理与鸽巢定理(抽屉定理)
定义在计数时,必须注意没有重复,没有遗漏。为了使重叠部分不被重复计算,人们研究出一种新的计数方法,这种方法的基本思想是:先不考虑重叠的情况,把包含于某内容中的所有对象的数目先计算出来,然后再把计数时重复计算的数目排斥出去,使得计算的结果既无遗漏又无重复,这种计数的方法称为容斥原理。中学教科书给出的定义 如果被计数的事物有A、B、C三类,那么,A类和B类和C类元素个数总和= A类元素个数+ B类元素原创 2017-06-18 23:08:25 · 1682 阅读 · 1 评论 -
hdu 2136
Problem Description Everybody knows any number can be combined by the prime number. Now, your task is telling me what position of the largest prime factor. The position of prime 2 is 1, prime 3 is 2原创 2017-07-20 20:41:13 · 675 阅读 · 0 评论 -
hdu 1029 Ignatius and the Princess IV
#include <cstdio>#include <algorithm>#include <iostream>#include <map>#include <vector>using namespace std;#define REP(x,l,u) for(int x = (l);x<=(u);x++)const int maxn=999999+100;void init () {原创 2017-07-29 22:02:52 · 290 阅读 · 0 评论 -
51Nod - 1433 0和5 找规律
小K手中有n张牌,每张牌上有一个一位数的数,这个字数不是0就是5。小K从这些牌在抽出任意张(不能抽0张),排成一行这样就组成了一个数。使得这个数尽可能大,而且可以被90整除。注意:1.这个数没有前导0,2.小K不需要使用所有的牌。Input 每个测试数据输入共2行。 第一行给出一个n,表示n张牌。(1<=n<=1000) 第二行给出n个整数a00,a11,a22,…,an−1n−1 (ai原创 2017-07-19 18:58:52 · 630 阅读 · 0 评论 -
大一的自己
大一的我唯唯诺诺,不知道该专心做什么,今天一晚无眠,在B站上看了很久CLS的视频,启发很大,希望自己这一次不是三分钟的热度,真的要决定该做什么了,希望现在并没有很迟。 总结:大一上学期,正常学习,觉得C语言很牛逼,大学之前也没有接触过电脑编程这一块,花了半学期自己搞完了C语言,觉得没什么压力了,然后学的东西就很杂,比如没事玩一玩Ubuntu,觉得C++很好玩,没事就学C++,然后就是也没有很系统的原创 2017-08-04 04:18:55 · 493 阅读 · 0 评论 -
mac gdb调试 解决warning: unhandled dyld version (15) [Inferior 1 (process 660) exited normally]
打开终端 运行 vim .gdbinit在里面添加set startup-with-shell off问题解决原创 2017-10-27 00:35:58 · 4047 阅读 · 0 评论 -
mac sublime 配置c++ 做个笔记给以后的自己
c++ 格式化代码cool format:进入formatter setting 修改配置; Please visit http://akof1314.github.io/CoolFormat/doc/index.html for more information[SynTidy]C++=""-A2-p-N-Y-o-T-N-k3"" Java=""-A1-p-N-Y-k3""C#=""-A1原创 2017-10-27 20:23:06 · 680 阅读 · 0 评论 -
ac自动机模版
后缀数组#include <iostream>#include <cstdio>#include <cstring>using namespace std;const int maxn=200000+100;int wa[maxn], wb[maxn], wv[maxn], Ws[maxn];int Rank[maxn], height[maxn];int sa[maxn], r[max原创 2017-10-24 23:41:26 · 341 阅读 · 0 评论 -
换博客了
一个是自己买的域名吗,兴趣使然:新博客 另一个是自己重新注册的csdn 强迫症患者:csdn原创 2018-01-10 20:49:12 · 407 阅读 · 0 评论 -
博客 first
2016.10.28这会是一个值得纪念的日子,我将会从此刻开始,1~2天不间断的更新我再软件,编程方面的学习历程和在大学的琐事。希望N年后看到,能够回味。a good memery....... 加油原创 2016-10-28 21:50:20 · 360 阅读 · 2 评论 -
啊哈算法-----快速排序
引用> http://bbs.ahalei.com/thread-4419-1-1.html转载 2016-12-17 11:47:07 · 456 阅读 · 0 评论 -
幻方三种(劳伯法)(海尔法)(斯特拉兹法)算法
很详细的讲解,可以当成自己的笔记, 转载于 http://www.cnblogs.com/panlijiao/archive/2012/05/11/2496757.html转载 2016-12-19 21:29:43 · 3009 阅读 · 0 评论 -
CodeForces 4A
AA - Water~melon Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u SubmitStatusPracticeCodeForces 4A Description One hot summer day Pete and his friend Billy decided to b原创 2016-11-13 19:23:53 · 370 阅读 · 0 评论 -
CodeForces 595A
B - Vitaly and Night Time Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u SubmitStatusPracticeCodeForces 595A Description One day Vitaly was going home late at night and wo原创 2016-11-13 19:33:12 · 558 阅读 · 0 评论 -
CodeForces 727C
zsy:Guess the Array Time Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u SubmitStatusPracticeCodeForces 727C Description This is an interactive problem. You should use flus原创 2016-11-13 22:46:09 · 522 阅读 · 0 评论 -
CodeForces 682A
D - Alyona and Numbers Time Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u SubmitStatusPracticeCodeForces 682A Description After finishing eating her bun, Alyona came up w原创 2016-11-13 23:03:12 · 591 阅读 · 0 评论 -
POJ 2027
No Brainer Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 27647 Accepted: 18163 DescriptionZombies love to eat brains. Yum. InputThe first line contains a single integer n i原创 2016-11-25 21:29:15 · 384 阅读 · 0 评论 -
POJ 1004
Financial Management Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 178571 Accepted: 67213 DescriptionLarry graduated this year and finally has a job. He’s making a lot of mon原创 2016-11-25 21:31:23 · 268 阅读 · 0 评论 -
基础练习 芯片测试
基础练习 芯片测试 时间限制:1.0s 内存限制:512.0MB 提交此题 锦囊1 锦囊2 问题描述 有n(2≤n≤20)块芯片,有好有坏,已知好芯片比坏芯片多。 每个芯片都能用来测试其他芯片。用好芯片测试其他芯片时,能正确给出被测试芯片是好还是坏。而用坏芯片测试其他芯片时,会随机给出好或是坏的测试结果(即此结果与被测试芯片实际的好坏无关)。 给出所有芯片的测试结原创 2017-03-29 23:25:21 · 487 阅读 · 0 评论 -
基础练习 回形取数
基础练习 回形取数 时间限制:1.0s 内存限制:512.0MB 提交此题 锦囊1 锦囊2 问题描述 回形取数就是沿矩阵的边取数,若当前方向上无数可取或已经取过,则左转90度。一开始位于矩阵左上角,方向向下。 输入格式 输入第一行是两个不超过200的正整数m, n,表示矩阵的行和列。接下来m行每行n个整数,表示这个矩阵。 输出格式 输出只有一行,共mn个数,为原创 2017-03-29 23:21:43 · 407 阅读 · 0 评论 -
快速排序 C语言实现
转载于> http://blog.chinaunix.net/uid-26404477-id-3329885.html#include <stdio.h>#include <stdlib.h> void swap(int *x,int *y){ int temp; temp = *x; *x = *y; *y = temp;}int choose_pivot(int i转载 2016-12-17 11:11:56 · 566 阅读 · 0 评论 -
C语言---辗转相除法 HDU 2503
Problem Description 给你2个分数,求他们的和,并要求和为最简形式。Input 输入首先包含一个正整数T(T<=1000),表示有T组测试数据,然后是T行数据,每行包含四个正整数a,b,c,d(0#include <stdio.h>int count (int m,int n);int main (){ int t,a,b,c,d; int up,down;原创 2016-12-31 16:21:27 · 558 阅读 · 0 评论 -
xcode 如何使用#include <bits/stdc++.h>
进入Xcode的目录 usr-》include-》c++—》v1 创建一个名为bits的文件夹 在里面添加一个stdc++.h std++.h的内容为:// C++ includes used for precompiling -*- C++ -*-// Copyright (C) 2003-2014 Free Software Foundation, Inc.//// T原创 2017-09-01 01:10:47 · 3759 阅读 · 1 评论