算是组队后第一次打比赛吧。

09题开始就有人过了,看到题目,这不是轮廓线DP的裸题么?!!,一发WA告终,然后发现题目是有改动的。还是太心急了。

  然后我读了第一题,是最小生成树求期望距离,我把题意说了一下,磊哥就开始写,在调编译器上出了点问题,卡了一会儿,提交也不是特别顺利,迷之错误WA了三发。但是也算是过了。    

  看见04题求区间GCD,想起去年多校貌似有题类似的,于是马上想到DP方法,预处理了一下区间GCD,用map存了一下,交了一发,结果顺利一A。

  欣君说02题裸博弈,能做,于是开始敲,很快敲完,开心一交,一个TLE砸脸上,改改又是一个TLE,于是预处理了SG,变成WA了,然后发现……欣君的位运算符号方向写反了,方向写反了_(:зゝ∠)_ 改完后过了。

  这个时候三题排名18名。

  11的题意很简单,就是求四面体的内切圆坐标和半径,看到一些人过了,于是我们开始算,由于没人有三维的计算几何板子,所以就僵在了那里。讨论了一个小时,得出了一个方法,欣君决定开始手写,样例调了两个小时没出,比赛终结,18->78。

  最后的问题还是开题不够多,死磕在11题的几何上了,赛后发现有题二分图还是挺简单的但是没有太多人写,于是没有看。总体来说,计算几何这一块还是太差了,需要补上来。

  赛后自己恶补了FFT,感谢Claris的指导,总算彻底搞懂卷积。

  发现11题一个公式能出结果,其实是有点懊恼的,但是显然在赛场上,我们也是不可能获得这样子的一个公式,因此,还是提升计算几何的能力较为重要。

  趁着补06题,又回忆了一下欧拉函数,了解了几个新的比较有趣的性质。想了好久才想明白别人博客上公式的推导过程,但是感觉受益颇丰。此外贴上nicetomeetu发给我的欧拉函数相关数学公式,mark一下。

欧拉函数:
对正整数n,欧拉函数是少于或等于n的数中与n互质的数的数目。
例如euler(8)=4,因为1,3,5,7均和8互质。 通式:
对于一个正整数N的素数幂分解
N = (P1^q1) * (P2^q2) * ...* (Pn^qn). φ(1) = 1.
φ(N) = N * (1-1/P1) * (1-1/P2) *...* (1-1/Pn). 定理:
1.欧拉函数是非完全积性函数: φ(m*n) = φ(n)*φ(m) ,
当且仅当GCD(n,m) = 1. 2.一个数的所有质因子之和是 euler(n)*n/2. 3.若n是素数p的k次幂,φ(n)=p^k-p^(k-1)=(p-1)p^(k-1),
因为除了p的倍数外,其他数都跟n互质. 特殊性质:
1.当n为奇数时,φ(2n) = φ(n).
2.对于质数p,φ(p) = p - 1
3.除了N=2,φ(N)都是偶数. 指数循环节:
A^x = A^(x % φ(C) + φ(C)) (mod C) (x >= φ(C)) 定理1 应用:
∑(i=1,m)φ(i*n)=φ(pi)*∑(i=1,m)ϕ(i*n/pi)+∑(i=1,m/pi)ϕ(i*n);
(n无平方因子数)

  03题一开始用自己的想法补,结果出现纰漏,欣君残忍地找了个样例击碎了我的幻想,求助Q巨,按照其说法写了一下,调试了两天WA,最后弃疗,Qrz。

  这次多校由于有两题51nod的原题,受到了比较多的吐槽,然而对于我来说,还是有比较大的收获的。

  希望接下来的集训都可以正能量满满地进行下去吧。

2016 Multi-University Training Contest 1 总结的更多相关文章

  1. 2016 Al-Baath University Training Camp Contest-1

    2016 Al-Baath University Training Camp Contest-1 A题:http://codeforces.com/gym/101028/problem/A 题意:比赛 ...

  2. 2016 Al-Baath University Training Camp Contest-1 E

    Description ACM-SCPC-2017 is approaching every university is trying to do its best in order to be th ...

  3. 2016 Al-Baath University Training Camp Contest-1 A

    Description Tourist likes competitive programming and he has his own Codeforces account. He particip ...

  4. 2016 Al-Baath University Training Camp Contest-1 J

    Description X is fighting beasts in the forest, in order to have a better chance to survive he's gon ...

  5. 2016 Al-Baath University Training Camp Contest-1 I

    Description It is raining again! Youssef really forgot that there is a chance of rain in March, so h ...

  6. 2016 Al-Baath University Training Camp Contest-1 H

     Description You've possibly heard about 'The Endless River'. However, if not, we are introducing it ...

  7. 2016 Al-Baath University Training Camp Contest-1 G

    Description The forces of evil are about to disappear since our hero is now on top on the tower of e ...

  8. 2016 Al-Baath University Training Camp Contest-1 F

    Description Zaid has two words, a of length between 4 and 1000 and b of length 4 exactly. The word a ...

  9. 2016 Al-Baath University Training Camp Contest-1 D

    Description X is well known artist, no one knows the secrete behind the beautiful paintings of X exc ...

  10. 2016 Al-Baath University Training Camp Contest-1 C

    Description Rami went back from school and he had an easy homework about bitwise operations (and,or, ...

随机推荐

  1. 【JQ学习笔记】提示的效果

    <p><a href="#" class="tooltip" title="这是我的超链接提示1.">提示1.< ...

  2. Uber License for Android

    Uber license for android list: 1.Butter Knife: 项目地址:https://github.com/JakeWharton/butterknife 这个开源库 ...

  3. Java Notes 00 - Singleton Pattern(单例总结)

    转:http://hukai.me/java-notes-singleton-pattern/ 这里不赘述单例模式的概念了,直接演示几种不同的实现方式. 0)Eager initialization ...

  4. Android 启动APP黑屏解决方案

    #Android 启动APP黑屏解决方案# 1.自定义Theme //1.设置背景图Theme <style name="Theme.AppStartLoad" parent ...

  5. 1.offsetParent,offsetLeft,offsetTop

    offsetParent <!doctype html> <html> <head> <meta charset="utf-8"> ...

  6. box-shadow 给图片添加内部阴影

    box-shadow 是css3中定义的设置元素阴影的属性,其语法结构如下: <shadow> = inset? && <length>{2,4} && ...

  7. PHP 数组和对象的相互转化

    对象和数组的相互转化在开发中也是很常见,一般不是多维的情况下直接(array)和(object)就可搞定了,多维的话,遍历下也就可以了: 1 <?php 2 class test 3 { 4 p ...

  8. 如何在IIS 中配置应用程序(Convert to Application)?

    1.打开IIS 2.选择待操作的虚拟目录 3.鼠标右键,点击"Convert to Application” 4.点击connect as 5.选中Specific user,并点击Set ...

  9. Oracle EBS-SQL (INV-1):检查物料成本为0并且物料状态不是'NEW'的物料.sql

    select --msi.inventory_item_id        --,msi.organization_id     msi.segment1                        ...

  10. Delphi 服务操作

    unit Service; interface uses Windows,Messages,SysUtils,Winsvc,Dialogs; function  StartServices(Const ...