自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Y390d的博客

ACM复习笔记

  • 博客(7)
  • 收藏
  • 关注

原创 HDU 3400 Line belt 【三分嵌套】

 In a two-dimensional plane there are two line belts, there are two segments AB and CD, lxhgww's speed on AB is P and on CD is Q, he can move with the speed R on other area on the plane. How long m...

2018-04-29 18:40:54 173

原创 ZOJ 3203 Light Bulb (三分)

  Compared to wildleopard's wealthiness, his brother mildleopard is rather poor. His house is narrow and he has only one light bulb in his house. Every night, he is wandering in his incommodious h...

2018-04-28 21:55:58 151

原创 【模拟链表】Joseph

Joseph Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1652    Accepted Submission(s): 1031  Problem DescriptionThe Joseph's proble...

2018-04-23 14:01:47 135

原创 list在圆桌问题循环遍历弹出的两个问题

在类似圆桌循环遍历,然后逐个弹出元素的问题上遇到了两个程序错误,第一个是   list iterator dereferenable的问题因为逐个删除元素的过程中,有两种写法让迭代器  it 重新指向list的下一个元素list<int> q;list<int> :: iterator it ;1,it = q.erase(it), 这里it 被删除后,it会自动指向下一个...

2018-04-18 13:27:38 172

转载 关于ios::sync_with_stdio(false);和 cin.tie(0)加速c++输入输出流

关于ios::sync_with_stdio(false);和 cin.tie(0)加速c++输入输出流原文地址:http://www.hankcs.com/program/cpp/cin-tie-with-sync_with_stdio-acceleration-input-and-output.html               http://www.clanfei.com/2012/03/...

2018-04-11 13:17:52 660

原创 分数取模

这里介绍一种分数取模的代码:假设要求 (1/m) mod p这里要引用小费马定理 a^p-1 mod p = 1 mod p (有兴趣的可以百度查下证明过程) ,这里对这个公式做点改动---> a^p-1=a^p-2 *a , 把 a 移到上述等式的右边有 a^p-2 mod p = a^-1 mod p ,那么这里,a^-1 mod p就是我们要求的,这个值的结果恒等于...

2018-04-07 19:40:29 20500 1

原创 二维数组用sort排序遇到得问题

在用二维数组做排序得过程中,出现得一些问题,下面先看代码,代码内容可以忽视#include<iostream>#include<stack>#include<string>#include<cstring>#include<cstdio>#include<cstdlib>#include<algorithm&

2018-04-06 22:43:44 2391

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除