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

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. 关于Eclipse的编码配置和字体大小设置

    编码设置 1.工作空间编码:Window-->Preferences-->General-->Workspace 2.工程文件编码:项目-->Properties-->R ...

  2. mac + apache + php

    1: 设置下用sublimetext为默认打开方式, 确保下载sublimetext 2:设置下默认打开方式为sm sudo ln -s /Applications/Sublime\ Text\ 2. ...

  3. td太多内容显示...

    table style="table-layout:fixed;"td style="text-overflow: ellipsis;white-space: nowra ...

  4. python语言

    python语言 因为我比较熟悉python语言,所以月刊中python语言的项目居多,个人能力有限,其他语言涉及甚少,欢迎各路人士加入,丰富月刊的内容. 当然,如果您有更好的建议或者意见,欢迎发邮件 ...

  5. sudo apt-get update

    要用apt-get这种方式安装LAMP时,最好先运行下面在命令升级自己的系统这样是为了更新源,而如果你找的源不好,可能安装LMAP失败.#sudo apt-get update 获得最近的软件包的列表 ...

  6. Android01-概述

    1.Android特点    开源和免费    强大的研发力量,完整的生态圈    互联网服务的支持 2.Android系统架构    应用层    应用框架层    系统运行库层    Linux内 ...

  7. javascript instanceof

    object instanceof constructor instanceof运算符用来检测constructor.prototype是否存在于参数object的原型链上. 对于instanceof ...

  8. RHEL Channel Bonding

    1. 添加 kernel 模块 RHEL5上编辑 /etc/modprobe.conf 加入 alias bond0 bonding options bond0 miimon=100 mode=1   ...

  9. javascript数组去重算法-----2

    <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...

  10. HTTP的头部

    if($this->GetHead("http-edition")=="HTTP/1.1") $httpv = "HTTP/1.1"; ...