摘要:
You are given a sequence of integer numbers. Zero-complexity transposition of the sequence is the reverse of this sequence. Your task is to write a pr 阅读全文
posted @ 2018-10-02 10:42
bernieloveslife
阅读(397)
评论(0)
推荐(0)
摘要:
Output the k-th prime number. k≤10000 The k-th prime number. 阅读全文
posted @ 2018-10-02 10:42
bernieloveslife
阅读(118)
评论(0)
推荐(0)
摘要:
John von Neumann, b. Dec. 28, 1903, d. Feb. 8, 1957, was a Hungarian-American mathematician who made important contributions to the foundations of mat 阅读全文
posted @ 2018-10-02 10:41
bernieloveslife
阅读(307)
评论(0)
推荐(0)
摘要:
Among grandfather's papers a bill was found. 72 turkeys $_679_ The first and the last digits of the number that obviously represented the total price 阅读全文
posted @ 2018-10-02 10:40
bernieloveslife
阅读(266)
评论(0)
推荐(0)
摘要:
读入两个小于100的正整数A和B,计算A+B. 需要注意的是:A和B的每一位数字由对应的英文单词给出. 测试输入包含若干测试用例,每个测试用例占一行,格式为"A + B =",相邻两字符串有一个空格间隔.当A和B同时为0时输入结束,相应的结果不要输出. 对每个测试用例输出1行,即A+B的值. 阅读全文
posted @ 2018-10-02 10:37
bernieloveslife
阅读(229)
评论(0)
推荐(0)
摘要:
某省调查城镇交通状况,得到现有城镇道路统计表,表中列出了每条道路直接连通的城镇。省政府“畅通工程”的目标是使全省任何两个城镇间都可以实现交通(但不一定有直接的道路相连,只要互相间接通过道路可达即可)。问最少还需要建设多少条道路? 测试输入包含若干测试用例。每个测试用例的第1行给出两个正整数,分别是城 阅读全文
posted @ 2018-10-02 10:37
bernieloveslife
阅读(207)
评论(0)
推荐(0)
摘要:
给你n个点,m条无向边,每条边都有长度d和花费p,给你起点s终点t,要求输出起点到终点的最短距离及其花费,如果最短距离有多条路线,则输出花费最少的。 输入n,m,点的编号是1~n,然后是m行,每行4个数 a,b,d,p,表示a和b之间有一条边,且其长度为d,花费为p。最后一行是两个数 s,t;起点s 阅读全文
posted @ 2018-10-02 10:36
bernieloveslife
阅读(193)
评论(0)
推荐(0)
摘要:
对于一个字符串,将其后缀子串进行排序,例如grain 其子串有: grain rain ain in n 然后对各子串按字典顺序排序,即: ain,grain,in,n,rain 每个案例为一行字符串。 将子串排序输出 Solution1:(qsort) Solution2:(set) 阅读全文
posted @ 2018-10-02 10:34
bernieloveslife
阅读(914)
评论(0)
推荐(0)
摘要:
在每年的校赛里,所有进入决赛的同学都会获得一件很漂亮的t-shirt。但是每当我们的工作人员把上百件的衣服从商店运回到赛场的时候,却是非常累的!所以现在他们想要寻找最短的从商店到赛场的路线,你可以帮助他们吗? 输入包括多组数据。每组数据第一行是两个整数N、M(N<=100,M<=10000),N表示 阅读全文
posted @ 2018-10-02 10:33
bernieloveslife
阅读(389)
评论(0)
推荐(0)
摘要:
设计一个二次方程计算器 每个案例是关于x的一个二次方程表达式,为了简单,每个系数都是整数形式。 每个案例输出两个实数(由小到大输出,中间由空格隔开),保留两位小数;如果无解,则输出“No Solution”。 阅读全文
posted @ 2018-10-02 10:31
bernieloveslife
阅读(311)
评论(0)
推荐(0)

浙公网安备 33010602011771号