上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 17 下一页
摘要: A. Odds and Ends time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Where do odds begin, and 阅读全文
posted @ 2017-09-09 09:50 ISGuXing 阅读(146) 评论(0) 推荐(0) 编辑
摘要: Friend-Graph Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 6514 Accepted Submission(s): 1610 P 阅读全文
posted @ 2017-08-24 14:05 ISGuXing 阅读(416) 评论(0) 推荐(0) 编辑
摘要: C++中数字与字符串之间的转换 1、字符串数字之间的转换(1)string --> char * string str("OK"); char * p = str.c_str();(2)char * -->string char *p = "OK"; string str(p);(3)char * 阅读全文
posted @ 2017-08-20 22:06 ISGuXing 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 第二次打日服。。。 感觉比较水。因为聚会的原因,还几十分钟结束的时候才打开电脑。 D题就没看。难度不知。 题目链接http://abc071.contest.atcoder.jp/ ABC都水题。 C题因为数据比较大,不知道为什么用long long 有点问题,赛后发现是x,y用的是int 相乘会溢 阅读全文
posted @ 2017-08-20 21:58 ISGuXing 阅读(167) 评论(0) 推荐(0) 编辑
摘要: A. Generous Kefa time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A. Generous Kefa time l 阅读全文
posted @ 2017-08-19 00:30 ISGuXing 阅读(274) 评论(0) 推荐(0) 编辑
摘要: The Romans have attacked again. This time they are much more than the Persians but Shapur is ready to defeat them. He says: "A lion is never afraid of 阅读全文
posted @ 2017-08-11 09:26 ISGuXing 阅读(474) 评论(0) 推荐(0) 编辑
摘要: 题目描述: 键盘输入一个高精度的正整数N(此整数中没有‘0’),去掉其中任意S个数字后剩下的数字按原左右次序将组成一个新的正整数。编程对给定的N和S,寻找一种方案使得剩下的数字组成的新数最小。 输出应包括所去掉的数字的位置和组成的新的正整数。(N不超过240位) 样例输入175438 4 样例输出1 阅读全文
posted @ 2017-08-09 10:37 ISGuXing 阅读(935) 评论(0) 推荐(0) 编辑
摘要: 某工厂有n个独立的作业,由m台相同的机器进行加工处理。作业i所需的加工时间为ti,任何作业在被处理时不能中断,也不能进行拆分处理。现厂长请你给他写一个程序:算出n个作业由m台机器加工处理的最短时间。 输入 第一行T(1<T<100)表示有T组测试数据。每组测试数据的第一行分别是整数n,m(1<=n< 阅读全文
posted @ 2017-08-08 20:48 ISGuXing 阅读(1870) 评论(0) 推荐(0) 编辑
摘要: Description A group of N people wishes to go across a river with only one boat, which can at most carry two persons. Therefore some sort of shuttle ar 阅读全文
posted @ 2017-08-08 11:49 ISGuXing 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 转自http://blog.csdn.net/niushuai666/article/details/6734403 函数lower_bound()在first和last中的前闭后开区间进行二分查找,返回大于或等于val的第一个元素位置。如果所有元素都小于val,则返回last的位置 举例如下: 一 阅读全文
posted @ 2017-08-07 20:12 ISGuXing 阅读(233) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 17 下一页