- 博客(4)
- 收藏
- 关注
原创 map 数组里放 pair 或 结构体
放 pair#includeusing namespace std;typedef pairTL;maps;int main(){ TL a; a.first = 1,a.second = 2; s[a] = 1; cout << s[a];}放结构体#includeusing namespace std;struct Test {
2017-05-29 21:19:18 1357
原创 平常水题 - atcoder 062 - D - 3N Numbers
D - 3N NumbersTime limit : 2sec / Memory limit : 256MBScore : 500 pointsProblem StatementLet N be a positive integer.There is a numerical sequence of length 3N, a=(a1,a2,…,a3N). Snuke
2017-05-25 19:07:31 535
原创 平常水题 - 蚂蚁(栈的使用)
蚂蚁Time limit per test: 0.5 secondsTime limit all tests: 5.0 secondsMemory limit: 256 megabytes水平线上有 N 只蚂蚁,每只蚂蚁的位置及大小均不同。他们沿着 X 轴爬行,有的向左,有的向右,爬行的速度是一样的,两只蚂蚁相遇大一点的会吃掉小的。现在从左到右给出每只蚂蚁的大小和爬行的
2017-05-21 21:19:18 756
原创 平常水题 - J. Architect of Your Own Fortune (二分图匹配)
J. Architect of Your Own FortuneVasya is a schoolboy who rides a trolley bus and then a bus to get to school. He’salways very happy to get a “lucky ticket,” which means the total of the first thre
2017-05-16 19:58:30 786
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人