摘要:
阿拉伯数字转化为中文(缩写)数值: include include include include using namespace std; string tostring(int a){ stringstream ss; ss res; return res; } int main(){ int 阅读全文
posted @ 2019-09-09 21:29
夜深不自知
阅读(437)
评论(0)
推荐(0)
摘要:
人员分组,一共有n个人,输入每个人认识的人名单,若a的名单里有b或者b的名单里有a,则a和b互相认识,若a认识b,b认识c,则通过介绍,a也会认识c,请你把所有人员进行分组,每组中的人都能够互相认识,且分组数最小。 思路:两次遍历,一次用逆邻接表,一次用邻接表,分组数取两次的最小值。 include 阅读全文
posted @ 2019-09-09 11:04
夜深不自知
阅读(304)
评论(0)
推荐(0)
摘要:
游戏规则,给定一个字符串数组,初始行走方向向右,每经过一个自然数,得分加上自然数,自然数减一,遇到 则行走方向向右,或者, include include include include include using namespace std; string tostring(int a){ str 阅读全文
posted @ 2019-09-09 10:36
夜深不自知
阅读(150)
评论(0)
推荐(0)

浙公网安备 33010602011771号