文明大学生

数学公式

2019年10月7日

J - Just Terraffic! Gym - 101177J

摘要: #include #define inf 0x3f3f3f3f using namespace std; /* 一道dp题,看来自己还是需要继续努力呀 dp[i]表示的是1-i个时间,所能够完美表示的2轮的车有多少个 状态转移 满足条件 dp[i]=dp[i-2]+1 dp[i]=dp[i-3] 并且如果dp[i-2]+1!=dp[3],说明有多种情况,虽然能够分好 */ int a[3500... 阅读全文

posted @ 2019-10-07 20:52 文明大学生 阅读(173) 评论(0) 推荐(0) 编辑

A - Anticlockwise Motion Gym - 101177A

摘要: #include<bits/stdc++.h> using namespace std; /* 直接针对平方来找 每次走的是个折线 */ pair<int,int> work(int x) { int y=(int)sqrt(x*1.0+0.5); pair<int,int>ans; if(y&1&&y*y==x) { ans.first=ans.second=(-(y-1)>>1); retur 阅读全文

posted @ 2019-10-07 10:36 文明大学生 阅读(132) 评论(0) 推荐(0) 编辑

2019年10月1日

C - The Number Of Good Substrings CodeForces - 1217C

摘要: 阅读全文

posted @ 2019-10-01 22:20 文明大学生 阅读(338) 评论(0) 推荐(0) 编辑

A - Creating a Character CodeForces - 1217A

该文被密码保护。 阅读全文

posted @ 2019-10-01 20:57 文明大学生 阅读(0) 评论(0) 推荐(0) 编辑

2019年9月29日

G - String Transformation HDU - 6282

该文被密码保护。 阅读全文

posted @ 2019-09-29 20:16 文明大学生 阅读(0) 评论(0) 推荐(0) 编辑

F - Sorting HDU - 6281

该文被密码保护。 阅读全文

posted @ 2019-09-29 19:10 文明大学生 阅读(1) 评论(0) 推荐(0) 编辑

K - 2018 HDU - 6286

摘要: 题意:给定两个区间 [a, b], [c, d],问有多少个有序对 (x, y)(x >= a && x <= b && y >= c && y <= d)使得,(x*y)= 0(mod 2018)。 输入:a, b, c, d。 数据范围:多组输入,所有输入均为[1, 1e9]。 The numb 阅读全文

posted @ 2019-09-29 17:45 文明大学生 阅读(132) 评论(0) 推荐(0) 编辑

A - Easy $h$-index HDU - 6276 B - Higher $h$-index HDU - 6277

摘要: 在一篇论文上多花时间和开新的论文, a * x求和完全等效,因为 x*i=n,只是拆分方法不同,总合都是a * n。eg: n = 3, a = 2, 拆分为1 1 1, 则基础引用量为2 2 2, trick引用量2 1 0,总效果2+2 2+1 2;拆分为2 1,则基础引用量为4 2(基础部分综合相同),trick引用量1 0(比论文篇数多的情况少),总效果为4+1 2+0,减少。 所以尽可能 阅读全文

posted @ 2019-09-29 17:29 文明大学生 阅读(316) 评论(0) 推荐(0) 编辑

2019年9月27日

C - How Many Maos Does the Guanxi Worth HDU - 5137

摘要: C - How Many Maos Does the Guanxi Worth HDU - 5137 C - How Many Maos Does the Guanxi Worth HDU - 5137 C - How Many Maos Does the Guanxi Worth "Guanxi" 阅读全文

posted @ 2019-09-27 18:59 文明大学生 阅读(281) 评论(0) 推荐(0) 编辑

E - Dogs' Candies HDU - 5127

摘要: Far far away, there live a lot of dogs in the forest. Unlike other dogs, those dogs love candies much more than bones. Every candy has two attributes: 阅读全文

posted @ 2019-09-27 18:49 文明大学生 阅读(211) 评论(0) 推荐(0) 编辑

导航