摘要: LuoguP1937 [USACO10MAR]Barn Allocation G 题目描述 链接 Solution 贪心的同时开个线段树判断一下可不可以放 #include<bits/stdc++.h> using namespace std; inline int read() { int f = 阅读全文
posted @ 2020-10-15 17:08 wlzs1432 阅读(117) 评论(0) 推荐(0) 编辑
摘要: CF741C Arpa’s overnight party and Mehrdad’s silent entering 题目描述 有2n个人围成一圈坐在桌子边上,每个人占据一个位子,对应这2n个人是n对情侣,要求情侣不能吃同一种食物,并且桌子上相邻的三个人的食物必须有两个人是不同的,只有两种食物(1 阅读全文
posted @ 2020-10-15 17:06 wlzs1432 阅读(82) 评论(0) 推荐(0) 编辑
摘要: luoguP4005 小 Y 和地铁 题目描述 链接 Solution #include<bits/stdc++.h> using namespace std; inline int read() { int f = 1,x = 0; char ch; do { ch = getchar(); if 阅读全文
posted @ 2020-10-15 17:03 wlzs1432 阅读(73) 评论(0) 推荐(0) 编辑
摘要: CF1110G Tree-Tac-Toe 题目描述 链接 Solution 大概就是分情况讨论一下吧 没想到中间是奇数时先手能必胜 还是太菜了 #include<bits/stdc++.h> using namespace std; inline int read() { int f = 1 ,x 阅读全文
posted @ 2020-10-15 17:01 wlzs1432 阅读(74) 评论(0) 推荐(0) 编辑