
补题
岛屿失梦°
这个作者很懒,什么都没留下…
展开
-
牛客小白月赛21(模拟汉诺塔)
牛客小白月赛21(模拟汉诺塔)—B Bits题目连接题目描述Nancy喜欢做游戏!汉诺塔是一个神奇的游戏,神奇在哪里呢?给出3根柱子,最开始时n个盘子按照大小被置于最左的柱子。如果盘子数为偶数,则需要将她们全部移动到最右侧的柱子上,否则将她们移动到中间的柱子上。那么,Nancy该怎样移动呢?请你输出汉诺塔游戏的过程叭!输入描述:共一行:一个整数n,表示最开始n个盘子(编号为1到n...原创 2020-01-20 03:38:23 · 464 阅读 · 0 评论 -
Good Bye 2019补题记录
Good Bye 2019补题记录A. Card Game题目描述Two players decided to play one interesting card game.There is a deck of n cards, with values from 1 to n. The values of cards are pairwise different (this means t...原创 2020-01-14 14:07:54 · 608 阅读 · 1 评论 -
Codeforces Round #612 (Div. 2)补题记录
Codeforces Round #612 (Div. 2)补题记录A Angry Students题目描述It’s a walking tour day in SIS.Winter, so t groups of students are visiting Torzhok. Streets of Torzhok are so narrow that students have to go ...原创 2020-01-12 12:34:33 · 1000 阅读 · 0 评论 -
2019网络赛
2019徐州网络赛补题**A**待补B并查集 删除x就是把x的爹变成x+1,查找祖先即可,hash_map可搞#include<bits/stdc++.h>#include <ext/hash_map> //hashmap#include <functional>#define TEST freopen("C:\\Users\\hp\\De...原创 2019-09-25 23:37:13 · 255 阅读 · 0 评论