Time Limit: 1000MS Memory Limit: 1572864KB 64bit IO Format: %lld & %llu Description Being a completist and a simplist, kid Yang Zhe cannot solve but g ...
分类:
其他好文 时间:
2016-11-30 03:21:52
阅读次数:
265
用getchar可以一个数字一个地读入,对于一个十进制数,最多就是10个数字,使用计数可以很方便地进行排序,再用dfs每十位十位地进行大数相加写dfs的时候需要注意,把保存状态的临时数组定义在dfs里面 #include <iostream> #include <algorithm> #includ ...
分类:
数据库 时间:
2016-11-29 22:20:46
阅读次数:
259
题目描述 小南有一套可爱的玩具小人, 它们各有不同的职业。 有一天, 这些玩具小人把小南的眼镜藏了起来。 小南发现玩具小人们围成了一个圈,它们有的面朝圈内,有的面朝圈外。如下图: 这时singer告诉小南一个谜題: “眼镜藏在我左数第3个玩具小人的右数第1个玩具小人的左数第2个玩具小人那里。 ” 小 ...
分类:
其他好文 时间:
2016-11-26 11:30:31
阅读次数:
246
Time Limit: 433MS Memory Limit: 1572864KB 64bit IO Format: %lld & %llu Description You are given a tree (an undirected acyclic connected graph) with N ...
分类:
其他好文 时间:
2016-11-24 18:08:14
阅读次数:
202
Input Input contains several datasets. The first line of each dataset contains two integer numbersn and m (1n10000, 1m10), the number of rows and colu ...
分类:
数据库 时间:
2016-11-22 01:54:37
阅读次数:
376