首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏wym

    Party hdu 6521

    Party 题意:给一组边,i 到 j,要求 i 到 i+1到 j 每个点有边,i 从 i 到 j-1。  题解: 开一个数组q[i], 表示i到q[i] 都 是连接的。

    42420发布于 2019-05-07
  • 来自专栏饶文津的专栏

    【USACO 2.2】Party Lamps

    四种开关,n盏灯,1:改变所有灯状态,2:改变奇数灯状态,3:改变偶数灯状态,4:改变3k+1灯状态

    78120发布于 2020-06-02
  • 来自专栏算法修养

    ZOJ 3941 Kpop Music Party(省赛, 贪心)

    Kpop Music Party ---- Time Limit: 2 Seconds      Memory Limit: 65536 KB ---- Marjar University often During a Kpop festival, there will be a Kpop party every day. He will be very excited continuously for K days after attending a Kpop music party. More specifically, If he attends a Kpop party in the i-th day, he would be very excited from the i-th For example, if K is 5 and Edward attended a party in Day 1 and a party in Day 3, he will be very excited

    92850发布于 2018-04-26
  • 来自专栏XINDOO的专栏

    hdoj 1520 Anniversary party(树形dp)

    我们可以把一个节点当做一个人,每个节点都有一个权重。按照题目意思,如果我们取了某个节点,那么他的父节点和子节点都是不能取的。按要求选取节点,使得选取节点的权重和最大。

    43320发布于 2021-01-22
  • 来自专栏XINDOO的专栏

    poj 1455 Crazy tea party

      这道题第一眼看去很难,其实不然,短短几行代码就搞定了。   说一下大概思路,如果是排成一排的n个人,如 1 2 3 4 5 6 7 8 我们要变成 8 7 6 5 4 3 2 1 需要交换 28次,找规律的话就是 n*(n-1)/2,但这道题是一个圈,要让他们顺序变反的话不一定1要在8的位置上去,4 3 2 1 8 7 6 5 这样也是反的,我们只要把n个人分成两部分,然后按拍成一条线的方法来出来两部分就OK了。

    57430发布于 2021-01-22
  • 来自专栏饶文津的专栏

    【 Gym - 101124E 】Dance Party (数学)

    BUPT2017 wintertraining(15) #4G Gym - 101124 E.Dance Party 题意 有c种颜色,每个颜色最多分配给两个人,有M个男士,F个女士,求至少一对男士同色的概率

    43120发布于 2020-06-02
  • 来自专栏算法修养

    HDU-1520 Anniversary party(树形DP)

    Anniversary party Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 7566 Accepted Submission(s): 3321 Problem Description There is going to be a party In order to make the party funny for every one, the rector does not want both an employee and his or

    62340发布于 2018-04-25
  • 来自专栏Metaverse元宇宙

    元宇宙音乐,无界的狂欢party!

    最近一段时间,“买菜难”成为上海最牵动人心的公共话题。但富有娱乐精神,善于苦中作乐的上海人,也在居家封控中制造各种“云娱乐”。

    90730编辑于 2022-04-28
  • 来自专栏ACM算法日常

    年会Party(树形动态规划)- HDU 1520

    Problem Description There is going to be a party to celebrate the 80-th Anniversary of the Ural State In order to make the party funny for every one, the rector does not want both an employee and his or

    73020发布于 2018-08-07
  • 来自专栏施炯的IoT开发专栏

    微软中文论坛2010新年Party手记

    由于自己经常登陆微软中文技术论坛闲逛,而且在Windows Mobile开发、Windows Mobile用户和Windows Embedded CE板块上回答一些朋友的问题,因此这次紫柔姐姐也邀请了我参加这次论坛的新年Party

    83590发布于 2018-01-10
  • 来自专栏腾讯云 DNSPod 团队

    5周年D- Party 为域名狂欢

    活动时间: 11月12-11月21日 ,狂欢大Party,提前知晓!!! “宝贝域名”注册 厚厚红包底现 11月12日让亲的好友都来吧,让我一次爱你个够!

    37210编辑于 2023-05-04
  • 来自专栏饶文津的专栏

    【POJ 2342】Anniversary party(入门树形dp)

    没有告诉你树根,dp的方向我第一次写的是用队列维护叶子节点,每次计算完,它的父亲的孩子数量--,如果减到0,就变成叶子加入队列。直到队列空。后来看别人写的两种是读入的时候维护root,还有种方法是记录父亲,然后递推祖先。

    44910发布于 2020-06-02
  • 来自专栏饶文津的专栏

    【POJ 3062】Party(2-SAT、tarjan)

    a,a',b,b'分别表示两对夫妇,如果a,b有矛盾,那么a要来,就只能来b',b要来,就只能来a'。于是建了两条边(a,b'),(b,a')。

    49830发布于 2020-06-02
  • 来自专栏CSDN旧文

    P1468 派对灯 Party Lamps(BIG 模拟)

    题目描述 在IOI98的节日宴会上,我们有N(10<=N<=100)盏彩色灯,他们分别从1到N被标上号码。 这些灯都连接到四个按钮:

    56120发布于 2020-10-28
  • 来自专栏赤道企鹅的博客

    Ghost Party - C++拷贝构造缺失漏洞

    idx:int): p.sendafter(b"Your choice :", b"2\n") p.sendafter(b"which you want to show in the party int): p.sendafter(b"Your choice :", b"4\n") p.sendafter(b"which you want to remove from the party : ", str(idx).encode()+b"\n") def end_party(): p.sendafter(b"Your choice :", b"5\n") def get_fake_werewolf_obj

    38910编辑于 2022-08-01
  • 【POJ】3268 - Silver Cow Party(dijkstra & 优先队列 & 好题)

    点击打开题目 Silver Cow Party Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 18390 Accepted One cow from each of N farms (1 ≤ N ≤ 1000) conveniently numbered 1..N is going to attend the big cow party Each cow must walk to the party and, when the party is over, return to her farm. A cow's return route might be different from her original route to the party since roads are one-way. Of all the cows, what is the longest amount of time a cow must spend walking to the party and back?

    28810编辑于 2025-08-26
  • 来自专栏Zaqdt_ACM

    Cat Party(思维)

    题目链接:https://codeforces.com/contest/1163/problem/B2

    52720发布于 2019-05-15
  • 来自专栏以终为始

    J - Welcome Party ZOJ - 4109 【 并查集 + 优先队列 + BFS 】

    J - Welcome Party ZOJ - 4109  &:这个就是看着题解搞得了,当时想到了优先队列和 BFS ,没有搞把所有的连起来,但是也没有尝试,当时在做字符串那个题,反正各种原因了。

    35610编辑于 2023-03-09
  • 来自专栏CSDN旧文

    POJ 1176 Party Lamps&& USACO 2.2 派对灯(搜索)

    题目地址 http://poj.org/problem?id=1176 题目描述 在IOI98的节日宴会上,我们有N(10<=N<=100)盏彩色灯,他们分别从1到N被标上号码。 这些灯都连接到四

    53320发布于 2020-10-28
  • 来自专栏AI科技大本营的专栏

    亚洲最大的元宇宙平台,体验在豪宅里开party

    想象一下,你刚刚得到了你愿望清单上一直想拥有的生活方式,电视、可提高您生活质量的家用电器以及最新款时尚智能手机。现在,如果我们告诉你可以使用这些创新产品来装饰你的家呢?

    66110编辑于 2022-02-10
领券