码迷,mamicode.com
首页 >  
搜索关键字:hdu 5387 clock    ( 32526个结果
HDU 2089 不要62
状态表示: dp[len][sta]表示当前第len位,上一位为last的情况下满足条件的数的个数。 int f[15][10]; int a[15]; int l,r; int dfs(int len,int last,bool limit) { if(!len) return 1; if(!li ...
分类:其他好文   时间:2021-02-22 12:12:38    阅读次数:0
2020 BIT冬训-二分三分快速幂矩阵 L - Decode the Strings HDU - 2371
Problem Description Bruce Force has had an interesting idea how to encode strings. The following is the description of how the encoding is done:Let x1 ...
分类:其他好文   时间:2021-02-19 13:18:41    阅读次数:0
图解算法——矩阵转换(Rotate Image)
1. 题目描述 You are given an n x n 2D matrix representing an image, rotate the image by 90 degrees (clockwise). You have to rotate the image in-place, whi ...
分类:编程语言   时间:2021-02-18 13:08:31    阅读次数:0
HDU-6356 Glad You Came 线段树+剪枝
\(\text{原题链接}\) \(\text{题目大意}\) 初始有一个长度为 \(n\) 的序列 \(a\),初始全 \(0\)。 共 \(m\) 次修改,每次修改 \((l,r,v)\),让 \(a_i = \max(a_i, v), (l\leq i\leq r)\)。求出所有操作后的 \( ...
分类:其他好文   时间:2021-02-15 12:15:44    阅读次数:0
2014 ACM/ICPC Asia Regional Xi'an Online
501 / 529 A HDU 5007 Post Robot 83 / 443 B HDU 5008 Boring String Problem !!! 111 / 784 C HDU 5009 Paint Pearls +++ 6 / 57 D HDU 5010 Get the Nut ??? ...
分类:其他好文   时间:2021-02-09 12:32:36    阅读次数:0
【逆向BFS + 康托展开 + 打表】hdu 1043 Eight(八数码问题)
题目描述: http://acm.hdu.edu.cn/showproblem.php?pid=1043 中文大意: 经典八数码问题。 给定初始状态,要求变换到目标状态并输出移动过程。 目标状态固定为:1 2 3 4 5 6 7 8 x 。 思路: 采用逆向 BFS + 康托展开判重 + 打表的方法 ...
分类:其他好文   时间:2021-02-08 12:12:13    阅读次数:0
Leetcode - Gas Station
There are n gas stations along a circular route, where the amount of gas at the ith station is gas[i]. You have a car with an unlimited gas tank and i ...
分类:其他好文   时间:2021-02-08 11:44:08    阅读次数:0
Game of Taking Stones HDU - 5973
Game of Taking Stones HDU - 5973 题目大意 给你两堆石子,分别有$x$,$y$个,可以同时在两堆里取相同个数,也可以只在一堆里取不小于$1$个的石子。 \(x,y<10^{100}\) 解 首先,不考虑数据范围,这是个经典的威佐夫博弈,先手输只需满足如下式子即可: \ ...
分类:其他好文   时间:2021-02-01 11:37:37    阅读次数:0
HDU 1022 Train Problem I 模拟
#include<iostream> #include<stack> #include<vector> #include<cstring> using namespace std; int n; char s1[10], s2[10]; vector<int> p; //记录顺序 stack<cha ...
分类:其他好文   时间:2021-01-30 11:54:10    阅读次数:0
HeHe HDU-2879【积性函数推导】
题意 定义 \(\text{He[N]}\) 表示满足以下方程的解的个数: \[ X^2\equiv X(\bmod N)(X\in [0,N-1]) \] 并且定义 \(\text{HeHe[N]}=\text{He[1]}\times \cdots \times \text{He[N]}\),对 ...
分类:其他好文   时间:2021-01-27 13:59:23    阅读次数:0
32526条   上一页 1 2 3 4 5 6 ... 3253 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!