![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ACM
Aurora_U
勇敢向前
展开
-
计蒜客:Adjoin the Networks
计蒜客:ACMOne day your boss explains to you that he has a bunch of computer networks that are currently unreachable from each other, and he asks you, the cable expert's assistant, to adjoin the netwo...原创 2018-07-26 16:42:24 · 195 阅读 · 0 评论 -
计蒜客:Cryptographer's Conundrum
题目来源: https://www.jisuanke.com/contest/1410/85286这题没啥好说的#include<algorithm>#include<iostream>#define eps 1e-9#define LL long long#define PI acos(-1.0)#define bitnum(a) __builtin_...原创 2018-07-26 16:58:03 · 190 阅读 · 0 评论 -
计蒜客:Disastrous Downtime
题目来源:https://www.jisuanke.com/contest/1410/85287 #include<iostream>#include<functional>#include<algorithm>#include<cstring>#include<string>#include<cstdio>...原创 2018-07-26 17:18:41 · 216 阅读 · 0 评论 -
计蒜客:Floppy Music
题目大意:开始点未定,有多个操作,将点向左或者向右移动d个单位长度,是否存在在一个开始点符合要求。代码:#include <iostream>#include <bits/stdc++.h> using namespace std; bitset <20005> a,b; int main(){ int n; cin&...原创 2018-07-26 17:24:42 · 237 阅读 · 0 评论 -
计蒜客::Entertainment Box
题意:输入n,k 表示有n场电视节目,最多可以同时录制k场,然后n行输入电视节目的起始时间和结束时间,注意(x1,y1) (x2,y2) y1==x2 不算重叠,求能录制的最多数量;思路:多重集合,贪心#include <iostream>#include <algorithm>#include <cstdio>#include <cst...原创 2018-07-26 17:29:36 · 216 阅读 · 3 评论 -
ACM常用经典算法
模板是帮助你学习,但是用太多模板是不好的 ,你需要深入学习内化为自己的。1.埃拉托斯特尼筛法/* |埃式筛法| |快速筛选素数| |16/11/05ztx|*/int prime[maxn]; bool is_prime[maxn];int sieve(int n){ int p = 0; for(int i = 0; i <=...原创 2018-08-05 18:45:32 · 4735 阅读 · 1 评论 -
2019 ICPC World Finals 试题
2019ICPC World Finals于北京时间4月5日零点左右结束了,下面有试题大家去看看!链接:https://pan.baidu.com/s/1sbtelHoVKqMu2ccdzoSYmA提取码:bezt原创 2019-04-05 08:57:30 · 2888 阅读 · 0 评论 -
1.开场白(ccpc)2050编程竞赛
题目链接:http://2050.acmclub.cn/contests/contest_showproblem.php?pid=1001&cid=3题目意思,很明确就是找连续的且完整的2050,因为数据很大,采用字符处理。2050 四个字符,对于输入的 字符进行检查,如果字符长度对4取模等于0,就开始检查2050字符是否完整 ,取模不等于0直接输出No.数据的存储可以用string或...原创 2019-04-13 21:55:26 · 851 阅读 · 5 评论