
codeforces
zzuli-dk
这个作者很懒,什么都没留下…
展开
-
Codeforces Round #419 (Div. 2)Karen and Coffee
Karen and Coffee time limit per test2.5 seconds memory limit per test512 megabytes inputstandard input outputstandard output To stay woke and attentive during classes, Karen needs some coffee!Kare原创 2017-08-13 14:36:50 · 236 阅读 · 0 评论 -
2017-2018 ACM-ICPC, NEERC, Southern Subregional Contest Union of Doubly Linked Lists
题目 题意: 已知每个节点i的前驱和后继(0表示没有), 合并成双向链表。 思路: 如果是双向链表必然有一个节点没有前驱,任意选一个没有前驱的点, 每次找到其路径上的尾部, 将下一个位置的头加入尾部。#include <stdio.h>#include <string.h>#include <iostream>#include <vector>using namespace st原创 2017-09-19 14:12:36 · 334 阅读 · 0 评论 -
codeforces Transformation: from A to B dfs+bfs
Transformation: from A to Btime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasily has a number a, which he原创 2016-10-15 20:05:12 · 845 阅读 · 0 评论