Physical Education Lessons "CodeForces 915E " This year Alex has finished school, and now he is a first year student of Berland State University. For ...
分类:
其他好文 时间:
2019-10-04 21:14:24
阅读次数:
93
链接: https://codeforces.com/contest/1230/problem/D 题意: Marcin is a coach in his university. There are n students who want to attend a training camp. Ma ...
分类:
其他好文 时间:
2019-10-04 15:21:39
阅读次数:
85
Marcin is a coach in his university. There are nn students who want to attend a training camp. Marcin is a smart coach, so he wants to send only the s ...
分类:
其他好文 时间:
2019-09-27 21:03:26
阅读次数:
73
"传送门" C Cover 题意: 给出一张无向图,现在问最少多少次“一笔画”能够覆盖所有的边,并且输出方案数。 思路: 在无向图中,存在欧拉路径当且仅当所有点度数都为偶数或者只有两个点的度数为奇数并且一个点为起点一个点为终点。 因为一次“一笔画”最多消掉两个奇数点,所以最少的次数就为$max(\f ...
分类:
其他好文 时间:
2019-09-26 14:55:43
阅读次数:
102
Longest Subarray #include<bits/stdc++.h> using namespace std; const int maxn=1e5+10; vector<int> v[maxn]; int n,k,c; struct note { int left,right,maxx ...
分类:
其他好文 时间:
2019-09-23 22:32:31
阅读次数:
103
"传送门" A Maximum Multiple 推一下式子暴力判断即可,范围不会太大。 Code cpp include define MP make_pair define fi first define se second define sz(x) (int)(x).size() // def ...
分类:
其他好文 时间:
2019-09-23 14:56:55
阅读次数:
78
A打表找规律 //输入一个n,找到3个数x,y,z使得x+y+z=n,可以整除n,以及xyz最大,且输出xyz include include include include define INF 0x3f3f3f3f using namespace std; const int maxn=1e6+ ...
分类:
其他好文 时间:
2019-09-19 19:13:21
阅读次数:
82
Dawn-K recently discovered a very magical phenomenon in the supermarket of Northeastern University: The large package is not necessarily more expensiv ...
分类:
其他好文 时间:
2019-09-14 22:56:29
阅读次数:
158
1.Java语言概述 Java语言是美国Sun公司(Stanford University Network),在1995年推出的高级的编程语言。所谓编程语言,是计算机的语言,人们可以使用编程语言对计算机下达命令,让计算机完成人们需要的功能。 Java发展史 1995年Sun公司发布Java1.0版本 ...
分类:
编程语言 时间:
2019-09-03 22:06:41
阅读次数:
94
Programming Ability Test (PAT) is organized by the College of Computer Science and Technology of Zhejiang University. Each test is supposed to run sim ...
分类:
编程语言 时间:
2019-08-31 21:30:08
阅读次数:
97