随笔分类 -  构造

摘要:题目链接: "http://codeforces.com/contest/606/problem/D" D. Lazy Student time limit per test2 secondsmemory limit per test256 megabytes 问题描述 Student Vladis 阅读全文
posted @ 2016-09-07 23:42 fenicnn 阅读(136) 评论(0) 推荐(0)
摘要:题目链接: http://codeforces.com/contest/673/problem/D 题意: 给四个不同点a,b,c,d,求是否能构造出两条哈密顿通路,一条a到b,一条c到d。 题解: 构造法,看例子: input: 5 6 5 2 4 1 output: 5 4 3 1 2 4 5 阅读全文
posted @ 2016-05-28 02:03 fenicnn 阅读(119) 评论(0) 推荐(0)