link & auto cards
转载 2019-03-14 21:33:00
24阅读
// Problem: C. K-special Tables // Contest: Codeforces - Codeforces Round #342 (Div. 2)
原创 2022-08-16 14:53:12
70阅读
burnside
原创 2023-02-16 11:32:32
21阅读
题意 n个点m条单向边 计算 从1到每一个点的权值(除了1) 和每个点回到1 的权值之和 正向跑一次 反向跑一次即可 #include<bits/stdc++.h> using namespace std; //input by bxd #define rep(i,a,b) for(int i=(a
转载 2019-04-25 19:35:00
78阅读
2评论
Exchange CardsTime Limit:2 Seconds Memory Limit:65536 KBAs a basketball fan, Mike is also fond of collecting basketball player cards. But as a student...
转载 2015-08-06 01:05:00
51阅读
2评论
1004: [HNOI2008]Cards Description 小春现在很清闲,面对书桌上的N张牌,他决定给每张染色,目前小春只有3种颜色:红色,蓝色,绿色.他询问Sun有多少种染色方案,Sun很快就给出了答案.进一步,小春要求染出Sr张红色,Sb张蓝色,Sg张绝色.他又询问有多少种方案,Sun
原创 2021-08-05 13:42:23
43阅读
Your friend has n cards. You know that each card has a lowercase English letter on one side and a digit on the other. Currently, your friend has laid
转载 2018-01-26 22:23:00
219阅读
链接:https://ac.nowcoder.com/acm/contest/908/F 题意: AFei has many cards. Each card has a number written on it. Now he wants to takes some out of his card
转载 2019-06-01 17:45:00
62阅读
2评论
cf的a题没什么好说到,100的量级,每个人给2张牌,使每个人手中的牌点数相等。保证有一种分配方案。 对每个人,先计算出手中的牌的点数,然后循环两遍拿牌就可以。 A. Cards time limit per test 1 second memory limit per test 256 megab
转载 2016-07-23 11:10:00
95阅读
2评论
题目大意:有编号从一号到n号的n个点,m条路,问从一号到其他点,再从其他点回到一号,每个点都要走一次,问总路程最短多少。解题思路:因为数据量很大,用一般的dijkstra的话,二维数组也太大了,开不了。所以用spfa求。首先要学用邻接表示图,这样省空间,省时间,先看这篇博客学习一下(http://ahalei.blog.51cto.com/4767671/1391988)然后spfa的方法就是,首
原创 2021-12-01 13:41:12
50阅读
In the age of television, not many people attend theater performances. Antique Comedians of Malidinesia are aware of this fact. ...
原创 2022-06-29 10:08:55
26阅读
点击打开链接A. Cardstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are n cards (n is even)
原创 2022-09-07 16:47:56
44阅读
题目链接: "戳我" 看落咕上有一些题解用公式把题做出来了,我也不会这种数论方法,(而且好像是解法被hack了 这里介绍burnside+dp的做法。 设dp[i][j][k]表示对于当前这种置换,三种颜色分别使用i,j,k个的染色方案个数。转移的话,我们将置换拆成循环,要从上一个没有使用这种颜色染
原创 2021-07-15 14:26:39
49阅读
Invitation CardsTime Limit: 8000MSMemory Limit: 262144KTotal Submissions: 15101Accepted: 4897DescriptionIn the age of television, not many people attend theater performances. Antique Comedians of Malidinesia are aware of this fact. They want to propagate theater and, most of all, Antique Comedies. T
原创 2021-07-29 16:22:39
102阅读
http://acm.hdu.edu.cn/showproblem.php?pid=1535这道题两遍spfa,第一遍sfpa之后,重新建图,所有的边逆向建边,再一次spfa就可以了。 1 #include 2 #include 3 #include 4 #include 5 #includ...
转载 2014-04-25 21:23:00
43阅读
2评论
Invitation Cards 翻译: 描述 在电视时代,没有多少人参加戏剧表演。 Malidinesia古董喜剧演员知道这个事实。他们想传播戏剧,最重要的是古董喜剧。他们已经印制了包含所有必要信息和程序的邀请卡。许多学生被聘请将这些邀请分发给人们。每个学生志愿者都分配了一个公交车站,并且他或她在
转载 2018-06-29 16:04:00
63阅读
2评论
题目描述 小春现在很清闲,面对书桌上的N张牌,他决定给每张染色,目前小春只有3种颜色:红色,蓝色,绿色.他询问Sun有多少种染色方案,Sun很快就给出了答案. 进一步,小春要求染出Sr张红色,Sb张蓝色,Sg张绿色.他又询问有多少种方案,Sun想了一下,又给出了正确答案. 最后小春发明了M种不同的洗
转载 2017-10-22 14:51:00
46阅读
2评论
看了一下polya和burnside定理,感觉还行(就是不会证……)这题用的是burnsideans=在每个置换群下不动的方案数之和除以置换数这题有个难点在取模关于对p(p为素数)取模(涉及到了除法),我总结了两种方法:已知x mop p=y,要求x/z mod p=?大体思路是利用乘法逆,将/z转... Read More
转载 2014-06-20 13:29:00
36阅读
2评论
Problem Description:When Serezha was three years old,nto words in the way which formed the boy's mother favorite numbe...
原创 2023-06-28 15:32:40
172阅读
前言:很久没写博客了,虽然做了好多题,太懒了,这道题单纯就一个爬虫题目文章目录​​思路​​​​wp​​思路我们在每次请求都会有一个SecretState参数,用来保存游戏状态,并且在客户端和服务端同步。这个参数没法篡改。每次请求,服务端都会生成一个新的SecretState,但是旧的SecretState并不失效,问题就出在于此。 游戏如果赢了,就更新SecretState,如果输了,则不更新Se
原创 2022-11-06 16:59:31
231阅读
  • 1
  • 2
  • 3
  • 4
  • 5