feasible:adj. 可行的 bypass: v. 绕开,避开 eclipse: n. 月食 raw: adj. 生的 foresee:v. 预见 premier:n. 总理 ,adj: 首要的 peril: n. 危险. paste. v. 粘贴, n. 面团 bruise. n.伤痕 co ...
分类:
其他好文 时间:
2019-09-05 01:01:10
阅读次数:
101
原题 题目链接 题目分析 题意很明确,这里的模数是不互质的,因此不能直接套中国剩余定理.这里稍微讲一下中国剩余定理的扩展,假设前i个方程的特解为ans(i),通解为x(i)=ans(i)+k*lcm(前i个模数).把x(i)代入到第i+1个方程,用扩展欧几里得定理求解k=k0,ans(i+1)=an ...
分类:
其他好文 时间:
2019-08-31 10:48:30
阅读次数:
75
PAT B1014/A1061 Dating 题目描述: Sherlock Holmes received a note with some strange strings: Let's date! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hysc ...
分类:
其他好文 时间:
2019-08-25 19:37:38
阅读次数:
77
#include<bits/stdc++.h> #define ll long long using namespace std; ll n,m,a,lcm,now; bool flag; void exgcd(ll a,ll b,ll &d,ll &x,ll &y) { if(b==0) { d=... ...
分类:
其他好文 时间:
2019-08-24 16:54:17
阅读次数:
70
ADJ-GRADED 奇怪的;古怪的;不寻常的If you describe someone or something as peculiar, you think that they are strange or unusual, sometimes in an unpleasant way. M ...
分类:
其他好文 时间:
2019-08-18 13:26:28
阅读次数:
79
364. [HDU 1548] 奇怪的电梯 ★ 输入文件:lift.in 输出文件:lift.out 简单对比时间限制:1 s 内存限制:128 MB 【问题描述】 呵呵,有一天我做了一个梦,梦见了一种很奇怪的电梯。大楼的每一层楼都可以停电梯,而且第 i 层楼 (1<=i<=N) 上有一个数字 Ki ...
分类:
其他好文 时间:
2019-08-10 14:32:49
阅读次数:
96
Sherlock Holmes received a note with some strange strings: Let's date! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm. It took him only a minut ...
分类:
其他好文 时间:
2019-08-03 14:22:55
阅读次数:
71
There is a strange lift.The lift can stop can at every floor as you want, and there is a number Ki(0 <= Ki <= N) on every floor.The lift have just two ...
分类:
其他好文 时间:
2019-07-10 16:57:04
阅读次数:
126
这次测试规模较小,前两题也较水,但需要整理 T1(Jelly的~~男♂~~难题1): 从一个点 出发,以四连通的方式扩散,可以走 ,不能走o,走过的格子每单位时间会增加1点高度,问扩散完整间屋子需要的时间,以及此时高度的和。 并且 (起点格不算高度) water_lift一看:哇,~~钻出来一个光头 ...
分类:
其他好文 时间:
2019-06-29 10:47:54
阅读次数:
102
分析 汉诺四塔 设 $f[i]$ 表示求解 $i$ 盘四塔的最少步数,设 $d[i]$ 表示求解 $i$ 盘三塔的最少步数: $$ d[i]=2\cdot d[i 1]+1\\ f[i]=\min_{j=1}^{i 1}\left\{2\cdot f[j]+d[i j]\right\} $$ 第二个 ...
分类:
其他好文 时间:
2019-06-15 09:30:03
阅读次数:
88