摘要: 题目链接:http://codeforces.com/problemset/problem/358/A题目意思:在横坐标上给出n个不同的点,需要把前一个点跟后一个点(这两个点的顺序是紧挨着的)用一个半圆弧来连接。现在要判断的是这些符合条件的点连接以后,圆弧之间是否相交了。是则输出yes,否则输出no。 假设序列是x1,x2,x3,x4.....xn。相交其实只有两种情况,第一种就是样例已经给出了的:即 x1 2 #include 3 #include 4 using namespace std; 5 6 const int maxn = 1000 + 10; 7 int a[maxn]... 阅读全文
posted @ 2013-11-07 21:28 windysai 阅读(406) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://codeforces.com/problemset/problem/359/A题目意思:给出一个n行m列的table,你需要选择一个good cell(假设为(x, y), 1 2 #include 3 #include 4 using namespace std; 5 6 int main() 7 { 8 int i, j, n, m, t, f2, f; 9 while (scanf("%d%d", &n, &m) != EOF)10 {11 // freopen("in.txt", "r" 阅读全文
posted @ 2013-11-07 20:54 windysai 阅读(248) 评论(0) 推荐(0) 编辑