![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ZOJ
NingLiu_
该csdn博客专门用来做技术类的总结,希望自己能给初学者一些鄙陋的建议和帮助
展开
-
ZOJ - 3960 What Kind of Friends Are You
//其实也算水题,关键是要耐心做,不要浮躁 #include #include #include #include using namespace std; const int maxn = 205; string name[maxn]; int ans[maxn]; int rec[maxn][maxn]; //record[i][j] 为第i个人的第j个回答 int main(原创 2017-08-28 16:48:38 · 313 阅读 · 0 评论 -
ZOJ - 3961 Let's Chat
/*这题的思路是:不断取交集,并判断每个取到的交集中,能分出几个大小为3的子集(以双方都通话的天数为集合元素) //注意,如果没有大于3的子集,那么就说明友谊度不会累加,但也不会扣除,按照原来的计算,不到反而会扣,所以要和0取max // 参考博客; http://blog.csdn.net/a664607530/article/details/70893623 // 我写的和他略有不同的地方是,原创 2017-08-29 15:39:06 · 242 阅读 · 0 评论 -
ZOJ - 3959 Problem Preparation
//水题,排序后就能直接按照要求判断了,没什么坑点 #include #include #include using namespace std; const int N = 105; int a[N]; int main() { int T, n; scanf("%d", &T); while (T--) { scanf("%d", &n); for (int i =原创 2017-08-31 15:30:45 · 269 阅读 · 1 评论 -
ZOJ - 3958 Cooking Competition
//水题 #include #include using namespace std; int a[25]; int main() { int t, n; cin >> t; while (t--) { cin >> n; int mark1 = 0, mark2 = 0; for (int i = 0; i < n; i++) { cin >> a[i];原创 2017-08-31 15:35:02 · 222 阅读 · 0 评论