2019年8月9日

8.9 Round 1

摘要: 今天是这几天考试中唯一一次发挥正常一点儿的... T1:https://www.luogu.org/problem/T93119 这么小的数据,O(n^3)暴力就行 而我非常愚蠢加个二分,一样可以过 #include<cstdio> #include<iostream> #include<algor 阅读全文

posted @ 2019-08-09 20:38 L_M_A 阅读(200) 评论(0) 推荐(0) 编辑

8.7 Round 2

摘要: 刚说完白天思维性弱,晚上就来三道思维题... T1:https://www.luogu.org/problem/T92604 规律没找出来,35pts打表滚粗 可以证明(我也不会),p=a^3+3a+1 在a=871时,p>2e9,所以枚举a,然后sqrt(L)判p是否是质数即可 T2:https: 阅读全文

posted @ 2019-08-09 20:11 L_M_A 阅读(159) 评论(0) 推荐(0) 编辑

导航