摘要: win下脚本在linux 下写 #!/usr/bin/python3 时候 出现 /usr/bin/python3^M: 坏的解释器: 类似的问题应该是类似\r\n 等问题。 用一个工具 dos2unix + 脚本名字解决 阅读全文
posted @ 2014-01-07 16:04 doubleshik 阅读(514) 评论(0) 推荐(0) 编辑
摘要: 这道题数据s不是100。。我开了1000。。坑。。不停RE做法就是求出一个最小生成树然后求 第n-s边的大小题目:Problem C: Arctic NetworkThe Department of National Defence (DND) wishes to connect several northern outposts by a wireless network. Two different communication technologies are to be used in establishing the network: every outpost will have a 阅读全文
posted @ 2014-01-07 14:40 doubleshik 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 找出一堆点的最小生成树题目:Problem A: FrecklesIn an episode of the Dick Van Dyke show, little Richie connects the freckles on his Dad's back to form a picture of the Liberty Bell. Alas, one of the freckles turns out to be a scar, so his Ripley's engagement falls through.Consider Dick's back to be a p 阅读全文
posted @ 2014-01-07 13:10 doubleshik 阅读(185) 评论(0) 推荐(0) 编辑