-
Notifications
You must be signed in to change notification settings - Fork 0
/
atom.xml
529 lines (318 loc) · 33.1 KB
/
atom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Yunqi's blog</title>
<subtitle>我得记下些什么</subtitle>
<link href="/atom.xml" rel="self"/>
<link href="https://wudaoyunqi.com/"/>
<updated>2019-11-11T13:25:39.727Z</updated>
<id>https://wudaoyunqi.com/</id>
<author>
<name>Yunqi</name>
</author>
<generator uri="http://hexo.io/">Hexo</generator>
<entry>
<title>卷积神经网络笔记</title>
<link href="https://wudaoyunqi.com/2019/11/11/%E5%8D%B7%E7%A7%AF%E7%A5%9E%E7%BB%8F%E7%BD%91%E7%BB%9C%E7%AC%94%E8%AE%B0/"/>
<id>https://wudaoyunqi.com/2019/11/11/卷积神经网络笔记/</id>
<published>2019-11-11T11:42:01.000Z</published>
<updated>2019-11-11T13:25:39.727Z</updated>
<summary type="html">
<p>这篇笔记看到哪写到哪,只是一些杂碎的知识汇总,以后有时间再重新整理一下</p>
<h2 id="卷积神经网络结构"><a href="#卷积神经网络结构" class="headerlink" title="卷积神经网络结构"></a>卷积神经网络结构</h2><p>一个简单的卷积神经网络是由各种层按照顺序排列组成,网络中的每个层使用一个可以微分的函数将激活数据从一个层传递到下一个层。卷积神经网络主要由三种类型的层构成:卷积层、池化层(Pooling)和全连接层。</p>
<h3 id="1-卷积层"><a href="#1-卷积层" class="headerlink" title="1 卷积层"></a>1 卷积层</h3><p>卷积层的参数是由一些可学习的滤波器(filter)集合构成的。每个滤波器在空间上(宽度和高度)都比较小,但是<strong>深度</strong>和输入数据一致。<br>在向前传播的时候,每个滤波器都在输入数据的宽度和高度上<strong>滑动</strong>(准确地说是<strong>卷积</strong>),然后计算整个滤波器和输入数据任一处的内积(这里不太明白,如果说是向量与向量之间的内积我明白,但是投射到数据和滤波器之间的内积就不明白计算过程,在后面的卷积动态图里我也不太明白orz)。<br>
</summary>
<category term="机器学习" scheme="https://wudaoyunqi.com/categories/%E6%9C%BA%E5%99%A8%E5%AD%A6%E4%B9%A0/"/>
<category term="卷及神经网络" scheme="https://wudaoyunqi.com/categories/%E6%9C%BA%E5%99%A8%E5%AD%A6%E4%B9%A0/%E5%8D%B7%E5%8F%8A%E7%A5%9E%E7%BB%8F%E7%BD%91%E7%BB%9C/"/>
<category term="卷积神经网络" scheme="https://wudaoyunqi.com/tags/%E5%8D%B7%E7%A7%AF%E7%A5%9E%E7%BB%8F%E7%BD%91%E7%BB%9C/"/>
</entry>
<entry>
<title>2019百度之星初赛第一场题解</title>
<link href="https://wudaoyunqi.com/2019/08/26/2019%E7%99%BE%E5%BA%A6%E4%B9%8B%E6%98%9F%E5%88%9D%E8%B5%9B%E7%AC%AC%E4%B8%80%E5%9C%BA%E9%A2%98%E8%A7%A3/"/>
<id>https://wudaoyunqi.com/2019/08/26/2019百度之星初赛第一场题解/</id>
<published>2019-08-26T14:53:23.000Z</published>
<updated>2019-08-26T16:45:42.585Z</updated>
<summary type="html">
<h2 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h2><p>被学弟带着过了我不会的05,02自己看错了(所以wa出翔,没进前250</p>
<p>&nbsp;</p>
<h2 id="01-Polynomial"><a href="#01-Polynomial" class="headerlink" title="01 Polynomial"></a>01 Polynomial</h2><p><strong><a href="http://acm.hdu.edu.cn/showproblem.php?pid=6668" target="_blank" rel="noopener">HDU 6668</a> 数学/暴力判断</strong><br><strong>题目大意</strong>:给出f(x)和g(x)多项式各个系数,求当x→<strong>∞</strong>时,f(x)/g(x)的值<br><strong>思路</strong>:无脑高数知识,高中爷也一定提前学到过。从最高位开始判断,当两个系数都为0时,判断下一位;如果f(x)系数不为0,g(x)系数为0,则趋于正无穷,反之趋于0;当两个系数都不为0,则答案为两个系数的商(最简形式,算个gcd即可)<br>
</summary>
<category term="2019百度之星" scheme="https://wudaoyunqi.com/categories/2019%E7%99%BE%E5%BA%A6%E4%B9%8B%E6%98%9F/"/>
<category term="百度之星" scheme="https://wudaoyunqi.com/tags/%E7%99%BE%E5%BA%A6%E4%B9%8B%E6%98%9F/"/>
</entry>
<entry>
<title>2018CCPC女生赛-A-口算训练【质因数分解+二分】</title>
<link href="https://wudaoyunqi.com/2019/05/29/2018CCPC%E5%A5%B3%E7%94%9F%E8%B5%9B-A-%E5%8F%A3%E7%AE%97%E8%AE%AD%E7%BB%83%E3%80%90%E8%B4%A8%E5%9B%A0%E6%95%B0%E5%88%86%E8%A7%A3-%E4%BA%8C%E5%88%86%E3%80%91/"/>
<id>https://wudaoyunqi.com/2019/05/29/2018CCPC女生赛-A-口算训练【质因数分解-二分】/</id>
<published>2019-05-29T07:43:48.000Z</published>
<updated>2019-08-26T16:49:03.137Z</updated>
<summary type="html">
<h2 id="思路"><a href="#思路" class="headerlink" title="思路"></a>思路</h2><p>暴力是不能暴力的,此题是求任意区间乘积能否整除给出的一个数,那么我们不妨换个思路,对于一个数我们可以把它进行质因数分解,那么如果一个数可以整除另一个数,那么前者包含后者所有的质因数并且每个质因数个数都不小于后者。这道题先对ai进行质因数分解并记录,比如对于质数2,v[2]={1,2,2,4,4,4}表示第一个数有一个因数2,第二个数有两个,第三个数没有……,那么对于区间[l,r],查询d的一个质因数x的个数k=upper_bound(v[2].begin(),v[2].end(),r)-lower_bound(v[2].begin(),v[2].end(),l)</p>
</summary>
<category term="2018女生赛" scheme="https://wudaoyunqi.com/categories/2018%E5%A5%B3%E7%94%9F%E8%B5%9B/"/>
<category term="质因数分解" scheme="https://wudaoyunqi.com/categories/2018%E5%A5%B3%E7%94%9F%E8%B5%9B/%E8%B4%A8%E5%9B%A0%E6%95%B0%E5%88%86%E8%A7%A3/"/>
<category term="二分" scheme="https://wudaoyunqi.com/tags/%E4%BA%8C%E5%88%86/"/>
<category term="女生赛" scheme="https://wudaoyunqi.com/tags/%E5%A5%B3%E7%94%9F%E8%B5%9B/"/>
<category term="质因数分解" scheme="https://wudaoyunqi.com/tags/%E8%B4%A8%E5%9B%A0%E6%95%B0%E5%88%86%E8%A7%A3/"/>
</entry>
<entry>
<title>2018CCPC女生赛-B-缺失的数据范围</title>
<link href="https://wudaoyunqi.com/2019/05/28/2018CCPC%E5%A5%B3%E7%94%9F%E8%B5%9B-B-%E7%BC%BA%E5%A4%B1%E7%9A%84%E6%95%B0%E6%8D%AE%E8%8C%83%E5%9B%B4/"/>
<id>https://wudaoyunqi.com/2019/05/28/2018CCPC女生赛-B-缺失的数据范围/</id>
<published>2019-05-28T14:21:48.000Z</published>
<updated>2019-08-26T16:49:27.171Z</updated>
<summary type="html">
<h2 id="思路"><a href="#思路" class="headerlink" title="思路"></a>思路</h2><p>蛮明显的二分,对[1,1e18]的数进行二分。这里有精度问题,所以要用到除法(某种角度很自然的想法?),精度问题可以用long<br>double解决,c++写法一共有四种,当然直接上JAVA(窝不会耶<br>
</summary>
<category term="CCPC" scheme="https://wudaoyunqi.com/categories/CCPC/"/>
<category term="2018女生赛" scheme="https://wudaoyunqi.com/categories/CCPC/2018%E5%A5%B3%E7%94%9F%E8%B5%9B/"/>
<category term="二分" scheme="https://wudaoyunqi.com/categories/CCPC/2018%E5%A5%B3%E7%94%9F%E8%B5%9B/%E4%BA%8C%E5%88%86/"/>
<category term="二分" scheme="https://wudaoyunqi.com/tags/%E4%BA%8C%E5%88%86/"/>
</entry>
<entry>
<title>kuangbin带你飞专题十四数论基础-U</title>
<link href="https://wudaoyunqi.com/2019/05/12/kuangbin%E5%B8%A6%E4%BD%A0%E9%A3%9E%E4%B8%93%E9%A2%98%E5%8D%81%E5%9B%9B%E6%95%B0%E8%AE%BA%E5%9F%BA%E7%A1%80-U/"/>
<id>https://wudaoyunqi.com/2019/05/12/kuangbin带你飞专题十四数论基础-U/</id>
<published>2019-05-12T06:28:41.000Z</published>
<updated>2019-08-26T16:58:09.077Z</updated>
<summary type="html">
<p>题目网址:<a href="https://vjudge.net/contest/299252#problem/U" target="_blank" rel="noopener">https://vjudge.net/contest/299252#problem/U</a></p>
<h2 id="思路"><a href="#思路" class="headerlink" title="思路"></a>思路</h2><p>就是单纯的求素数=_=,我现在习惯写线性筛啦。坑点是注意2要输出no</p>
</summary>
<category term="kuangbin带你飞" scheme="https://wudaoyunqi.com/categories/kuangbin%E5%B8%A6%E4%BD%A0%E9%A3%9E/"/>
<category term="数论" scheme="https://wudaoyunqi.com/categories/kuangbin%E5%B8%A6%E4%BD%A0%E9%A3%9E/%E6%95%B0%E8%AE%BA/"/>
<category term="素数" scheme="https://wudaoyunqi.com/categories/kuangbin%E5%B8%A6%E4%BD%A0%E9%A3%9E/%E6%95%B0%E8%AE%BA/%E7%B4%A0%E6%95%B0/"/>
<category term="kuangbin带你飞" scheme="https://wudaoyunqi.com/tags/kuangbin%E5%B8%A6%E4%BD%A0%E9%A3%9E/"/>
<category term="数论" scheme="https://wudaoyunqi.com/tags/%E6%95%B0%E8%AE%BA/"/>
<category term="素数" scheme="https://wudaoyunqi.com/tags/%E7%B4%A0%E6%95%B0/"/>
</entry>
<entry>
<title>kuangbin带你飞专题十四数论基础-E</title>
<link href="https://wudaoyunqi.com/2019/05/12/kuangbin%E5%B8%A6%E4%BD%A0%E9%A3%9E%E4%B8%93%E9%A2%98%E5%8D%81%E5%9B%9B%E6%95%B0%E8%AE%BA%E5%9F%BA%E7%A1%80-E/"/>
<id>https://wudaoyunqi.com/2019/05/12/kuangbin带你飞专题十四数论基础-E/</id>
<published>2019-05-12T06:04:27.000Z</published>
<updated>2019-08-26T16:57:56.333Z</updated>
<summary type="html">
<p>题目网址:<a href="https://vjudge.net/contest/299252#problem/E" target="_blank" rel="noopener">https://vjudge.net/contest/299252#problem/E</a></p>
<h2 id="思路"><a href="#思路" class="headerlink" title="思路"></a>思路</h2><p>n^k=(10^lgn)^k=10^klgn,求x的前三位方法:x=10^lgx,lgx=整数a+小数b,a描述x有几位,10^a=100…0,10^b修饰每一位的数字,所以x的前三位就是10^b*100。后三位很好求,在快速幂中取mod=1000即可。有个坑点是后三位可能有前导零,所以要注意格式控制符的写法。</p>
</summary>
<category term="kuangbin带你飞" scheme="https://wudaoyunqi.com/categories/kuangbin%E5%B8%A6%E4%BD%A0%E9%A3%9E/"/>
<category term="数论" scheme="https://wudaoyunqi.com/categories/kuangbin%E5%B8%A6%E4%BD%A0%E9%A3%9E/%E6%95%B0%E8%AE%BA/"/>
<category term="数学思维" scheme="https://wudaoyunqi.com/categories/kuangbin%E5%B8%A6%E4%BD%A0%E9%A3%9E/%E6%95%B0%E8%AE%BA/%E6%95%B0%E5%AD%A6%E6%80%9D%E7%BB%B4/"/>
<category term="kuangbin带你飞" scheme="https://wudaoyunqi.com/tags/kuangbin%E5%B8%A6%E4%BD%A0%E9%A3%9E/"/>
<category term="数论" scheme="https://wudaoyunqi.com/tags/%E6%95%B0%E8%AE%BA/"/>
<category term="数学思维" scheme="https://wudaoyunqi.com/tags/%E6%95%B0%E5%AD%A6%E6%80%9D%E7%BB%B4/"/>
</entry>
<entry>
<title>kuangbin带你飞专题十四数论基础-C</title>
<link href="https://wudaoyunqi.com/2019/05/12/kuangbin%E5%B8%A6%E4%BD%A0%E9%A3%9E%E4%B8%93%E9%A2%98%E5%8D%81%E5%9B%9B%E6%95%B0%E8%AE%BA%E5%9F%BA%E7%A1%80-C/"/>
<id>https://wudaoyunqi.com/2019/05/12/kuangbin带你飞专题十四数论基础-C/</id>
<published>2019-05-12T05:39:06.000Z</published>
<updated>2019-08-26T16:57:45.840Z</updated>
<summary type="html">
<p>题目网址:<a href="https://vjudge.net/contest/299252#problem/C" target="_blank" rel="noopener">https://vjudge.net/contest/299252#problem/C</a></p>
<h2 id="思路"><a href="#思路" class="headerlink" title="思路"></a>思路</h2><p>啊,寒假训练做过这道题,也是第一次知道唯一分解定理这个东西。大意就是任何一个正整数都可以表示为若干个素数的乘积并且表示方法唯一,例如12=2^2<em>3,称之为标准分解式。<br>有几个性质:<br>1、如果N=P1^a1</em>p2^a2<em>…</em>pm^am,那么它的正因数的个数为(1+a1)<em>(1+a2)</em>…<em>(1+am)<br>2、它的全体正因数之和为(1+p1+p1^2+…+p1^a1)</em>(1+p2+p2^2+…+p2^a2)<em>…</em>(1+pm+pm^2+…+pm^am)<br>那么这道题我们要用到的是第一个性质,首先判断b*b是否&gt;=a(题目说这个矩形不是正方形并且给出的是长度偏小的那一边),大于则输出0,小于就求a有几个因子,然后将这个数/2,最后减掉[1,b-1]区间内a的因子数</p>
</summary>
<category term="kuangbin带你飞" scheme="https://wudaoyunqi.com/categories/kuangbin%E5%B8%A6%E4%BD%A0%E9%A3%9E/"/>
<category term="数论" scheme="https://wudaoyunqi.com/categories/kuangbin%E5%B8%A6%E4%BD%A0%E9%A3%9E/%E6%95%B0%E8%AE%BA/"/>
<category term="唯一分解定理" scheme="https://wudaoyunqi.com/categories/kuangbin%E5%B8%A6%E4%BD%A0%E9%A3%9E/%E6%95%B0%E8%AE%BA/%E5%94%AF%E4%B8%80%E5%88%86%E8%A7%A3%E5%AE%9A%E7%90%86/"/>
<category term="kuangbin带你飞" scheme="https://wudaoyunqi.com/tags/kuangbin%E5%B8%A6%E4%BD%A0%E9%A3%9E/"/>
<category term="数论" scheme="https://wudaoyunqi.com/tags/%E6%95%B0%E8%AE%BA/"/>
<category term="唯一分解定理" scheme="https://wudaoyunqi.com/tags/%E5%94%AF%E4%B8%80%E5%88%86%E8%A7%A3%E5%AE%9A%E7%90%86/"/>
</entry>
<entry>
<title>kuangbin带你飞专题十四数论基础-A</title>
<link href="https://wudaoyunqi.com/2019/05/12/kuangbin%E5%B8%A6%E4%BD%A0%E9%A3%9E%E4%B8%93%E9%A2%98%E5%8D%81%E5%9B%9B%E6%95%B0%E8%AE%BA%E5%9F%BA%E7%A1%80-A/"/>
<id>https://wudaoyunqi.com/2019/05/12/kuangbin带你飞专题十四数论基础-A/</id>
<published>2019-05-12T05:32:12.000Z</published>
<updated>2019-08-26T16:57:33.440Z</updated>
<summary type="html">
<p>题目网址:<a href="https://vjudge.net/contest/299252#problem/A" target="_blank" rel="noopener">https://vjudge.net/contest/299252#problem/A</a></p>
<h2 id="思路"><a href="#思路" class="headerlink" title="思路"></a>思路</h2><p>先预处理欧拉函数值,我习惯用线性筛了,然后将cost记忆化求值,这里注意phi[a]&lt;a,所以从a+1开始遍历寻找phi=a的数,更新cost[a]</p>
</summary>
<category term="kuangbin带你飞" scheme="https://wudaoyunqi.com/categories/kuangbin%E5%B8%A6%E4%BD%A0%E9%A3%9E/"/>
<category term="数论" scheme="https://wudaoyunqi.com/categories/kuangbin%E5%B8%A6%E4%BD%A0%E9%A3%9E/%E6%95%B0%E8%AE%BA/"/>
<category term="欧拉函数" scheme="https://wudaoyunqi.com/categories/kuangbin%E5%B8%A6%E4%BD%A0%E9%A3%9E/%E6%95%B0%E8%AE%BA/%E6%AC%A7%E6%8B%89%E5%87%BD%E6%95%B0/"/>
<category term="kuangbin带你飞" scheme="https://wudaoyunqi.com/tags/kuangbin%E5%B8%A6%E4%BD%A0%E9%A3%9E/"/>
<category term="数论" scheme="https://wudaoyunqi.com/tags/%E6%95%B0%E8%AE%BA/"/>
<category term="欧拉函数" scheme="https://wudaoyunqi.com/tags/%E6%AC%A7%E6%8B%89%E5%87%BD%E6%95%B0/"/>
</entry>
<entry>
<title>2017SWERC-Ingredients</title>
<link href="https://wudaoyunqi.com/2019/05/12/2017SWERC-Ingredients/"/>
<id>https://wudaoyunqi.com/2019/05/12/2017SWERC-Ingredients/</id>
<published>2019-05-12T04:52:20.000Z</published>
<updated>2019-08-26T16:48:43.680Z</updated>
<summary type="html">
<p>题目网址:<a href="https://open.kattis.com/problems/ingredients" target="_blank" rel="noopener">https://open.kattis.com/problems/ingredients</a></p>
<h2 id="思路"><a href="#思路" class="headerlink" title="思路"></a>思路</h2><p>虽说是个拓扑排序,但不是广义上求顺序的,只要求把每一点的cost算出来就行,所以我用了dfs求cost和prestige,求的方法题目已经给出,取最小的cost,cost相同则取prestige最大的那个。求完之后用01背包算出答案。<br>怎么看出是01背包的呢,首先它有要求的最大cost值,然后题目的意思让你选若干个dish在总cost不超过最大值的情况下使得prestige最大,就很符合01背包的概念嘛。“01”顾名思义就是选(1)或不选(0)。<br>另外,这里也用到了map将字符串转换为int型编号,用vector存边,每个顶点存以它为起点的边。dfs的思路是首先记录每个点的入度,找到入度为0的那个点,然后从这个点开始遍历它所连接的边,更新另一个点v的co和p值,同时将v的入度-1,如果入度为0了(此时它的co和p已经计算完毕),就将这个v点加入队列,重复以上步骤。</p>
</summary>
<category term="SWERC" scheme="https://wudaoyunqi.com/categories/SWERC/"/>
<category term="拓扑排序" scheme="https://wudaoyunqi.com/categories/SWERC/%E6%8B%93%E6%89%91%E6%8E%92%E5%BA%8F/"/>
<category term="SWERC" scheme="https://wudaoyunqi.com/tags/SWERC/"/>
<category term="拓扑排序" scheme="https://wudaoyunqi.com/tags/%E6%8B%93%E6%89%91%E6%8E%92%E5%BA%8F/"/>
<category term="01背包" scheme="https://wudaoyunqi.com/tags/01%E8%83%8C%E5%8C%85/"/>
</entry>
<entry>
<title>2017SWERC-Blowing-Candles</title>
<link href="https://wudaoyunqi.com/2019/05/12/2017SWERC-Blowing-Candles/"/>
<id>https://wudaoyunqi.com/2019/05/12/2017SWERC-Blowing-Candles/</id>
<published>2019-05-12T04:10:55.000Z</published>
<updated>2019-08-26T16:47:41.293Z</updated>
<summary type="html">
<p>题目网址:<a href="https://open.kattis.com/problems/blowingcandles" target="_blank" rel="noopener">https://open.kattis.com/problems/blowingcandles</a></p>
<h2 id="思路"><a href="#思路" class="headerlink" title="思路"></a>思路</h2><p>旋转卡壳求凸包的宽度(ps:你需要一个靠谱的模板</p>
</summary>
<category term="SWERC" scheme="https://wudaoyunqi.com/categories/SWERC/"/>
<category term="凸包(旋转卡壳)" scheme="https://wudaoyunqi.com/categories/SWERC/%E5%87%B8%E5%8C%85%EF%BC%88%E6%97%8B%E8%BD%AC%E5%8D%A1%E5%A3%B3%EF%BC%89/"/>
<category term="SWERC" scheme="https://wudaoyunqi.com/tags/SWERC/"/>
<category term="凸包(旋转卡壳)" scheme="https://wudaoyunqi.com/tags/%E5%87%B8%E5%8C%85%EF%BC%88%E6%97%8B%E8%BD%AC%E5%8D%A1%E5%A3%B3%EF%BC%89/"/>
</entry>
<entry>
<title>2017SWERC-Frosting-on-the-Cake</title>
<link href="https://wudaoyunqi.com/2019/05/12/2017SWERC-Frosting-on-the-Cake/"/>
<id>https://wudaoyunqi.com/2019/05/12/2017SWERC-Frosting-on-the-Cake/</id>
<published>2019-05-12T03:56:26.000Z</published>
<updated>2019-08-26T16:48:21.670Z</updated>
<summary type="html">
<p>题目网址:<a href="https://open.kattis.com/problems/frosting" target="_blank" rel="noopener">https://open.kattis.com/problems/frosting</a></p>
<h2 id="思路"><a href="#思路" class="headerlink" title="思路"></a>思路</h2><p>n范围到1e5了,所以暴力不行啦,得把复杂度降低,目测大概O(n)左右。仔细观察每种颜色所处的Ai,Bj的i+j的关系,发现白色块(i%3+j)%3=2,黄色块(i%3+j)%3=0,红色块=1,那么答案就呼之欲出了。复杂度O(3n)。</p>
</summary>
<category term="SWERC" scheme="https://wudaoyunqi.com/categories/SWERC/"/>
<category term="思维" scheme="https://wudaoyunqi.com/categories/SWERC/%E6%80%9D%E7%BB%B4/"/>
<category term="SWERC" scheme="https://wudaoyunqi.com/tags/SWERC/"/>
<category term="思维" scheme="https://wudaoyunqi.com/tags/%E6%80%9D%E7%BB%B4/"/>
</entry>
<entry>
<title>2017SWERC-Cakey-McCakeFace</title>
<link href="https://wudaoyunqi.com/2019/05/12/2017SWERC-Cakey-McCakeFace/"/>
<id>https://wudaoyunqi.com/2019/05/12/2017SWERC-Cakey-McCakeFace/</id>
<published>2019-05-12T03:25:59.000Z</published>
<updated>2019-08-26T16:48:05.776Z</updated>
<summary type="html">
<p>题目网址:<a href="https://open.kattis.com/problems/cakeymccakeface" target="_blank" rel="noopener">https://open.kattis.com/problems/cakeymccakeface</a></p>
<h2 id="思路"><a href="#思路" class="headerlink" title="思路"></a>思路</h2><p>让你找出现次数最多的时间差,范围是[0,1e9],那么用map的key记录时间差,value记录出现次数,最后找出value最大的最小的key即可。因为map会自动对key排序(默认从小到大),那么比较大小的时候写成&gt;max_n就行。</p>
</summary>
<category term="SWERC" scheme="https://wudaoyunqi.com/tags/SWERC/"/>
<category term="map" scheme="https://wudaoyunqi.com/tags/map/"/>
</entry>
<entry>
<title>NEUOJ-2019-2Monthly-3</title>
<link href="https://wudaoyunqi.com/2019/05/05/NEUOJ-2019-2Monthly-3/"/>
<id>https://wudaoyunqi.com/2019/05/05/NEUOJ-2019-2Monthly-3/</id>
<published>2019-05-05T07:40:15.000Z</published>
<updated>2019-08-26T16:59:21.171Z</updated>
<summary type="html">
<p>题目网址:<a href="https://oj.neu.edu.cn/problem/1467" target="_blank" rel="noopener">https://oj.neu.edu.cn/problem/1467</a></p>
<h2 id="思路"><a href="#思路" class="headerlink" title="思路"></a>思路</h2><p>求x出现了几次,当然是将所有编号踢入一个数组,然后用lower_bound和upper_bound寻找前后位置(目前二分很容易写错,stl大法好</p>
</summary>
<category term="NEUOJ" scheme="https://wudaoyunqi.com/categories/NEUOJ/"/>
<category term="二分" scheme="https://wudaoyunqi.com/categories/NEUOJ/%E4%BA%8C%E5%88%86/"/>
<category term="二分" scheme="https://wudaoyunqi.com/tags/%E4%BA%8C%E5%88%86/"/>
<category term="NEUOJ" scheme="https://wudaoyunqi.com/tags/NEUOJ/"/>
</entry>
<entry>
<title>NEUOJ-2019-2Monthly-2</title>
<link href="https://wudaoyunqi.com/2019/05/05/NEUOJ-2019-2Monthly-2/"/>
<id>https://wudaoyunqi.com/2019/05/05/NEUOJ-2019-2Monthly-2/</id>
<published>2019-05-05T07:23:23.000Z</published>
<updated>2019-08-26T16:59:08.514Z</updated>
<summary type="html">
<p>题目地址:<a href="https://oj.neu.edu.cn/problem/1466" target="_blank" rel="noopener">https://oj.neu.edu.cn/problem/1466</a></p>
<h2 id="思路"><a href="#思路" class="headerlink" title="思路"></a>思路</h2><p>通过找规律发现,只有素数或者质因子分解形式为两个质数(指数为1)的积的合数不符合题目条件。那么可以先预处理出1e6范围内的符合条件的结果,然后再用lower_bound查找n的位置就行。</p>
</summary>
<category term="NEUOJ" scheme="https://wudaoyunqi.com/categories/NEUOJ/"/>
<category term="规律" scheme="https://wudaoyunqi.com/categories/NEUOJ/%E8%A7%84%E5%BE%8B/"/>
<category term="NEUOJ" scheme="https://wudaoyunqi.com/tags/NEUOJ/"/>
<category term="规律" scheme="https://wudaoyunqi.com/tags/%E8%A7%84%E5%BE%8B/"/>
</entry>
<entry>
<title>NEUOJ-2019-1Monthly-2</title>
<link href="https://wudaoyunqi.com/2019/05/05/NEUOJ-2019-1Monthly-2/"/>
<id>https://wudaoyunqi.com/2019/05/05/NEUOJ-2019-1Monthly-2/</id>
<published>2019-05-05T06:52:06.000Z</published>
<updated>2019-08-26T16:58:46.174Z</updated>
<summary type="html">
<p>题目地址:<a href="https://oj.neu.edu.cn/problem/1460" target="_blank" rel="noopener">https://oj.neu.edu.cn/problem/1460</a></p>
<h2 id="思路"><a href="#思路" class="headerlink" title="思路"></a>思路</h2><p>任何一个整数都可以表示为n=p1^a1<em>p2^a2</em>…<em>pn^an,则f(n,0)=a1</em>a2<em>…</em>an,f(n,0)是积性函数(自己手推一下),对于f(x,y)是f(x,y-1)与自身进行狄利克雷卷积得到的结果,所以f(x,y)也是积性函数(这一点没有想通,等之后深挖狄利克雷卷积再填坑),所以f(x,y)也是积性函数。因此,只要对n质因子分解,然后预处理次方的dp值就可以了</p>
</summary>
<category term="NEUOJ" scheme="https://wudaoyunqi.com/categories/NEUOJ/"/>
<category term="积性函数" scheme="https://wudaoyunqi.com/categories/NEUOJ/%E7%A7%AF%E6%80%A7%E5%87%BD%E6%95%B0/"/>
<category term="DP" scheme="https://wudaoyunqi.com/categories/NEUOJ/%E7%A7%AF%E6%80%A7%E5%87%BD%E6%95%B0/DP/"/>
<category term="NEUOJ" scheme="https://wudaoyunqi.com/tags/NEUOJ/"/>
<category term="积性函数" scheme="https://wudaoyunqi.com/tags/%E7%A7%AF%E6%80%A7%E5%87%BD%E6%95%B0/"/>
<category term="DP" scheme="https://wudaoyunqi.com/tags/DP/"/>
</entry>
<entry>
<title>NEUOJ-2019-1Monthly-1</title>
<link href="https://wudaoyunqi.com/2019/05/05/NEUOJ-2019-1Monthly-1/"/>
<id>https://wudaoyunqi.com/2019/05/05/NEUOJ-2019-1Monthly-1/</id>
<published>2019-05-05T06:34:03.000Z</published>
<updated>2019-08-26T16:58:35.957Z</updated>
<summary type="html">
<p>题目地址:<a href="https://oj.neu.edu.cn/problem/1459" target="_blank" rel="noopener">https://oj.neu.edu.cn/problem/1459</a></p>
<h2 id="思路"><a href="#思路" class="headerlink" title="思路"></a>思路</h2><p>三种做法,1、三次lowbit 2、三次x=x&amp;(x-1) 3、__builtin_popcountll(计算一个64位无符号整数的二进制有多少个位为1)</p>
</summary>
<category term="NEUOJ" scheme="https://wudaoyunqi.com/categories/NEUOJ/"/>
<category term="位运算" scheme="https://wudaoyunqi.com/categories/NEUOJ/%E4%BD%8D%E8%BF%90%E7%AE%97/"/>
<category term="NEUOJ" scheme="https://wudaoyunqi.com/tags/NEUOJ/"/>
<category term="位运算" scheme="https://wudaoyunqi.com/tags/%E4%BD%8D%E8%BF%90%E7%AE%97/"/>
</entry>
<entry>
<title>浙江省赛19th-Robot_Cleaner_I</title>
<link href="https://wudaoyunqi.com/2019/05/05/%E6%B5%99%E6%B1%9F%E7%9C%81%E8%B5%9B19th-Robot-Cleaner-I/"/>
<id>https://wudaoyunqi.com/2019/05/05/浙江省赛19th-Robot-Cleaner-I/</id>
<published>2019-05-05T04:07:09.000Z</published>
<updated>2019-08-26T16:56:58.339Z</updated>
<summary type="html">
<p>题目地址:<a href="http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5981" target="_blank" rel="noopener">http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5981</a></p>
<h2 id="思路"><a href="#思路" class="headerlink" title="思路"></a>思路</h2><p>按照题意模拟即可,有三处剪枝,一是获得的字母数>字母总数时剪枝,二是给每个点对应一个哈希坐标,记录这个坐标是否在某几个x值循环(这一点比较难想,很容易t),三是只要处于do nothing状态就break</p>
</summary>
<category term="浙江省赛" scheme="https://wudaoyunqi.com/categories/%E6%B5%99%E6%B1%9F%E7%9C%81%E8%B5%9B/"/>
<category term="哈希" scheme="https://wudaoyunqi.com/categories/%E6%B5%99%E6%B1%9F%E7%9C%81%E8%B5%9B/%E5%93%88%E5%B8%8C/"/>
<category term="浙江省赛" scheme="https://wudaoyunqi.com/tags/%E6%B5%99%E6%B1%9F%E7%9C%81%E8%B5%9B/"/>
<category term="哈希" scheme="https://wudaoyunqi.com/tags/%E5%93%88%E5%B8%8C/"/>
</entry>
<entry>
<title>浙江省赛19th-Extended_Twin_Composite_Number</title>
<link href="https://wudaoyunqi.com/2019/05/05/%E6%B5%99%E6%B1%9F%E7%9C%81%E8%B5%9B19th-Extended-Twin-Composite-Number/"/>
<id>https://wudaoyunqi.com/2019/05/05/浙江省赛19th-Extended-Twin-Composite-Number/</id>
<published>2019-05-05T03:47:12.000Z</published>
<updated>2019-08-26T17:02:17.593Z</updated>
<summary type="html">
<p>题目地址:<a href="http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=4099" target="_blank" rel="noopener">http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=4099</a></p>
<h2 id="思路"><a href="#思路" class="headerlink" title="思路"></a>思路</h2><p>n<em>2+n=n</em>3<br>
</summary>
<category term="浙江省赛" scheme="https://wudaoyunqi.com/categories/%E6%B5%99%E6%B1%9F%E7%9C%81%E8%B5%9B/"/>
<category term="思维" scheme="https://wudaoyunqi.com/categories/%E6%B5%99%E6%B1%9F%E7%9C%81%E8%B5%9B/%E6%80%9D%E7%BB%B4/"/>
<category term="思维" scheme="https://wudaoyunqi.com/tags/%E6%80%9D%E7%BB%B4/"/>
<category term="浙江省赛" scheme="https://wudaoyunqi.com/tags/%E6%B5%99%E6%B1%9F%E7%9C%81%E8%B5%9B/"/>
</entry>
<entry>
<title>浙江省赛19th-Potion</title>
<link href="https://wudaoyunqi.com/2019/05/05/%E6%B5%99%E6%B1%9F%E7%9C%81%E8%B5%9B19th-Potion/"/>
<id>https://wudaoyunqi.com/2019/05/05/浙江省赛19th-Potion/</id>
<published>2019-05-05T03:03:56.000Z</published>
<updated>2019-08-26T16:56:44.372Z</updated>
<summary type="html">
<p>题目地址:<a href="http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=4094" target="_blank" rel="noopener">http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=4094</a></p>
<h2 id="思路"><a href="#思路" class="headerlink" title="思路"></a>思路</h2><p>因为只能从rank高的(分给)rank低的,所以从n开始依次将bi置为ai,bi-1+=(bi-ai),如果bi&lt;ai,那么输出No,否则输出Yes</p>
</summary>
<category term="思维" scheme="https://wudaoyunqi.com/tags/%E6%80%9D%E7%BB%B4/"/>
<category term="浙江省赛" scheme="https://wudaoyunqi.com/tags/%E6%B5%99%E6%B1%9F%E7%9C%81%E8%B5%9B/"/>
</entry>
<entry>
<title>浙江省赛19th-Thanks,TuSimple!</title>
<link href="https://wudaoyunqi.com/2019/05/01/%E6%B5%99%E6%B1%9F%E7%9C%81%E8%B5%9B19th-Thanks_TuSimple/"/>
<id>https://wudaoyunqi.com/2019/05/01/浙江省赛19th-Thanks_TuSimple/</id>
<published>2019-04-30T18:27:22.000Z</published>
<updated>2019-08-26T16:57:11.509Z</updated>
<summary type="html">
<p>题目网址:<a href="http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=4090" target="_blank" rel="noopener">http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=4090</a></p>
<h2 id="思路"><a href="#思路" class="headerlink" title="思路"></a>思路</h2><p>首先根据pi的值从小到大排序,同一个pi值按身高从低到高排序,然后线性匹配。</p>
</summary>
<category term="浙江省赛" scheme="https://wudaoyunqi.com/categories/%E6%B5%99%E6%B1%9F%E7%9C%81%E8%B5%9B/"/>
<category term="思维" scheme="https://wudaoyunqi.com/categories/%E6%B5%99%E6%B1%9F%E7%9C%81%E8%B5%9B/%E6%80%9D%E7%BB%B4/"/>
<category term="思维" scheme="https://wudaoyunqi.com/tags/%E6%80%9D%E7%BB%B4/"/>
<category term="浙江省赛" scheme="https://wudaoyunqi.com/tags/%E6%B5%99%E6%B1%9F%E7%9C%81%E8%B5%9B/"/>
</entry>
</feed>