- 博客(7)
- 资源 (1)
- 收藏
- 关注

原创 DIRECT: in & on
I. Principles:1. 5/7 ~ “8+3” ~ 7:00 (时间)2. in (效率);on —— stepwise + reflect 3. ACM after 22:00(进程)
2014-02-24 21:55:58
792
原创 2130: 5 Spots
问题:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=2130这是一道比较简单的模拟类问题,使用二维数组作为数据结构比较好,由于只有O和X两种,所以另其分别对应于0和1。以左上角的点为基点,遍历图像,对比斑点的每个像素和图像对应坐标的值是否一致即可。需要注意对应关系,以及坐标界的问题。AC代码
2014-03-09 23:16:07
568
原创 2104:Let the Balloon Rise——map容器
静不下心,所以又跑去a了一道题:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=2104也是很简单的题,就顺便温习了下map的用法,源代码如下:#define _CRT_SECURE_NO_WARNINGS 1#include #include #include #include #in
2014-03-08 23:53:05
753
原创 1514:Fake Tickets
又找了一道很水的题a了下,纯属无聊,还是把地址和代码贴上来吧:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=514#define _CRT_SECURE_NO_WARNINGS 1#include #include #include using namespace std;int mai
2014-03-08 22:26:42
763
原创 2186:Keep on Truckin'
十分简单的一道题。http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=2186#define _CRT_SECURE_NO_WARNINGS 1#include #include #include using namespace std;int main(){ int a, b, c; whi
2014-03-06 20:34:17
770
原创 1088: System Overload ——约瑟夫环
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=1088
2014-03-04 23:03:56
729
原创 1068:P,MTHBGWB
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=1068#define _CRT_SECURE_NO_WARNINGS 1#include #include #include using namespace std;char dict[30][30] = { ".-
2014-02-24 22:26:18
883
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人