相关分类: Java技术 C/C++ VB delphi
  • HDU3853

    Akemi Homura is a Mahou Shoujo (Puella Magi/Magical Girl). Homura wants to help her friend Madoka save the world. But because of the plot of the Boss Incubator, she is trapped in a labyrinth called LOOPS. The planform of the LOOPS is a rectangle of...

    2018-06-17 21:38:10

  • POJ 3321 Apple Tree

    Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 31499 Accepted: 9477 Description There is an apple tree outside of kaka's house. Every autumn, a lot of apples will grow in the tree. Kaka likes apple very much, so he has been carefully nur...

    2018-06-17 21:38:07

  • C++ bitset 常用函数及运算符

    ...

    2018-06-17 21:38:06

  • Tips for C++ Primer Chapter 12 动态内存

    第12章 动态内存 动态内存与智能指针 不同的内存管理方式 静态内存:保存局部static对象、类static数据成员、定义在任何函数之外的变量。 栈内存:保存定义在函数之内的非static对象。 内存池 | 自由空间(free store)| 堆:存储动态分配的对象。 PS:必须显式销毁不...

    2018-06-17 21:38:06

  • 洛谷 P1438 无聊的数列

    https://www.luogu.org/problemnew/show/1438 lazytag记录一下某个区间需要加的等差数列的首项和公差。由于区间长度已知(r-l+1),仅由此就可以推出这个区间每一个数要加上的数。 可以发现两个等差数列每一项相加,得到的还是等差数列,而且是首项和公差分别相加。 对...

    2018-06-17 21:38:03

  • 洛谷 P3802 小魔女帕琪

    题目背景 从前有一个聪明的小魔女帕琪,兴趣是狩猎吸血鬼。 帕琪能熟练使用七种属性(金、木、水、火、土、日、月)的魔法,除了能使用这么多种属性魔法外,她还能将两种以上属性组合,从而唱出强力的魔法。比如说为了加强攻击力而将火和木组合,为了掩盖弱点而将火和...

    2018-06-17 21:38:04

  • 1806最大数 string和sort函数用法

    1、C++自带sort函数用法 sort函数有三个参数: ( 1)第一个是要排序的数组的起始地址 ( 2)第二个是结束的地址(最后一位要排序的地址) ( 3)第三个参数是排序的方法,可以是从大到小也可是从小到大,还可以不写第三个参数,此时默认的排序方法是从小到大排序。 so...

    2018-06-17 21:38:02

  • BZOJ 3450: Tyvj1952 Easy

    Time Limit:10 Sec Memory Limit:128 MB Submit:874 Solved:646 [Submit][Status][Discuss] Description 某一天WJMZBMR在打osu~~~但是他太弱逼了,有些地方完全靠运气:( 我们来简化一下这个游戏的规则 有n次点击要做,成功了就是o,失败了就是x,分数是按comb计算的,...

    2018-06-17 21:37:44

  • HDU 2586 How far away ?

    Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 18652Accepted Submission(s): 7268 Problem Description There are n houses in the village and some bidirectional roads connecting them. Every day peol...

    2018-06-17 21:37:51

  • 巧妙取法——最小公倍数

    #include iostream #include algorithm #include cstring #include cmath using namespace std; int f( int a, int b){ int i; for (i=a;;i+=a) // 确保是a的倍数 { if (i%b== 0 ) return i; // 确保是b的倍数 }} int main(){ cout f( 3 , 5 ); return 0 ; }...

    2018-06-17 21:37:55

2