
ccf csp
chaomaer
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
CCF CSP JSON查询
update #include <iostream> #include <string> #include <stdlib.h> #include <cstdio> #include &am原创 2018-04-26 11:59:13 · 494 阅读 · 0 评论 -
ccf 命令行选项
ccf 权限查询import java.util.ArrayList; import java.util.HashMap; import java.util.Scanner;public class Main { private ArrayList<String> authList = new ArrayList<String>(); private HashMap<String,原创 2017-02-22 00:13:00 · 303 阅读 · 0 评论 -
ccf csp 地铁修建
import java.util.ArrayList; import java.util.Collections; import java.util.Scanner;public class Main { public ArrayList<Edge> arrayList = new ArrayList<Edge>(); public Scanner input = new Scann原创 2017-12-02 18:09:49 · 360 阅读 · 0 评论 -
ccf csp 俄罗斯方块
#include &lt;iostream&gt; #include &lt;string.h&gt; using namespace std; const int row = 15, col = 10; const int size = 4; int road[row+size][col]; int block[size][size]; int startcol; bool iscollisi...原创 2018-03-05 16:40:51 · 511 阅读 · 0 评论 -
CCF CSP 地铁修建
#include <iostream> #include <algorithm> #include <vector> #include <map> #include <string> #include <queue> #include <cstring> using namespace std; const in原创 2018-05-22 10:56:14 · 240 阅读 · 0 评论 -
CCF CSP 通信网络
传递闭包问题 (a-&gt;b&amp;&amp;b-&gt;c)---&gt;(a-&gt;c) floyd 这样做是超时的。 #include &lt;iostream&gt; #include &lt;math.h&gt; #include &lt;string.h&gt; #include &原创 2018-05-21 21:54:50 · 575 阅读 · 0 评论 -
CCF CSP 交通规划
吐槽: CCF绝对是最垃圾的OJ,没有之一,我内存超了,从错误类型中没看出来….. 为了防止内存超了,利用临接链表 为了防止时间超了,利用优先队列,其他的比较简答了。 #include <iostream> #include <math.h> #include <string.h> #include <stdio.h> #includ...原创 2018-05-21 16:53:39 · 482 阅读 · 0 评论 -
CCF CSP Crontab
这道题目可以从以下几点来分析,遍历给定起点到终点的每一分钟,然后去配置文件中查找,但是这样会超时,我们转化一下思路,遍历配置文件中的时间,根据产生的日期检查其是否有效,这样检查的时间大大减少。 工具函数准备 利用stringstream实现string和int之间的相互转化。 string int_to_string(int a){ /** * 将给定的整数变为字符串 ...原创 2018-04-19 22:39:18 · 1889 阅读 · 0 评论 -
CCF CSP 行车路线
#include &lt;iostream&gt; #include &lt;stdio.h&gt; #include &lt;string.h&gt; #include &lt;queue&gt; using namespace std; typedef long long int LL; const LL MAXSIZE = 502; const LL INF = 0x3f3原创 2018-05-18 17:28:33 · 1083 阅读 · 0 评论 -
CCF CSP 游戏
这道题目让我更加理解BFS对于求最短路径的重要性,如果需要多次访问一个节点,可以在再添加一个维度。 #include &lt;iostream&gt; #include &lt;algorithm&gt; #include &lt;vector&gt; #include &lt;map&gt; #include &lt;string&gt; #in原创 2018-05-23 19:04:29 · 583 阅读 · 0 评论