随笔分类 - 构造
摘要:题目链接: "http://codeforces.com/contest/606/problem/D" D. Lazy Student time limit per test2 secondsmemory limit per test256 megabytes 问题描述 Student Vladis
阅读全文
摘要:题目链接: 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
阅读全文

浙公网安备 33010602011771号