
zoj
文章平均质量分 63
Ki_zero
星辰大海,挑水砍柴。
展开
-
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 · 887 阅读 · 0 评论 -
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 · 771 阅读 · 0 评论 -
1088: System Overload ——约瑟夫环
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=1088原创 2014-03-04 23:03:56 · 731 阅读 · 0 评论 -
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 · 765 阅读 · 0 评论 -
2130: 5 Spots
问题:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=2130这是一道比较简单的模拟类问题,使用二维数组作为数据结构比较好,由于只有O和X两种,所以另其分别对应于0和1。以左上角的点为基点,遍历图像,对比斑点的每个像素和图像对应坐标的值是否一致即可。需要注意对应关系,以及坐标界的问题。AC代码原创 2014-03-09 23:16:07 · 570 阅读 · 0 评论 -
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 · 755 阅读 · 0 评论