自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

不慌不忙、不急不躁

https://github.com/JeraKrs

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

原创 Codeforces 487C Prefix Product Sequence(逆元)

题目链接:Codeforces 487C Prefix Product Sequence构造方式,从1开始,每次乘上i-1的逆元,再乘上i。#include #include #include using namespace std;typedef long long ll;const int maxn = 1e5 + 5;ll ans[maxn] = {0, 1};in

2015-03-19 14:52:56 1171

原创 Codeforces 487A Fight the Monster(暴力)

题目链接:Codeforces 487A Fight the Monster#include #include #include using namespace std;const int inf = 0x3f3f3f3f;int H, A, D;bool judge (int h, int a, int d) { if (a - D <= 0) return false

2015-03-19 14:52:10 1188

原创 Codeforces 487B Strip(RMQ)

题目链接:Codeforces 487B Strip#include #include #include #include #include using namespace std;const int maxn = 1e5 + 5;const int maxr = 20;const int inf = 0x3f3f3f3f;int ca, cd, AS[maxn],

2015-03-19 14:52:03 1286

原创 Codeforces 488B Candy Boxes(水)

题目链接:Codeforces 488B Candy Boxes#include #include #include using namespace std;int arr[4];bool judge () { int a[4]; memcpy(a, arr, sizeof(arr)); sort(a, a + 4); for (int i = 1; i < 4; i

2015-03-19 14:43:14 774

原创 Codeforces 488A Giga Tower(水)

题目链接:Codeforces 488A Giga Tower#include #include #include #include using namespace std;bool judge(int n) { n = abs(n); while (n) { if (n % 10 == 8) return true; n /= 10; } return f

2015-03-19 13:39:10 915

空空如也

空空如也

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

TA关注的人

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