码迷,mamicode.com
首页 >  
搜索关键字:15-puzzle problem    ( 37568个结果
CF908G New Year and Original Order
题意 给你一个数$n$,另$S(x)$表示$x$中各位数从小到大排序后的数,例如$S(120542)=12245$。 求$\sum_^n S(i)$ $1 \le n \le 10^{700}$ 传送门 思路 首先肯定是一道数位dp 考虑将某位数的贡献$x\times 10i$转化为$x$个$10i ...
分类:其他好文   时间:2020-07-02 21:54:30    阅读次数:59
随便集 2.0
上一个坑标签满了。。 ####\(\color{white}{CF868F\ Yet\ Another\ Minimization\ Problem}\) ####\(\color{white}{6081. ZQC 的女装}\) ...
分类:其他好文   时间:2020-07-02 21:40:26    阅读次数:58
半平面交 poj1279
Source Code Problem: 1279 User: Faker_fan Memory: 296K Time: 0MS Language: C++ Result: Accepted Source Code #include <iostream> #include <string.h> #i ...
分类:其他好文   时间:2020-07-02 21:31:43    阅读次数:44
call_user_func 详解
先来看解释 : (PHP 4, PHP 5, PHP 7) call_user_func — 把第一个参数作为回调函数调用 通过函数的方式回调<?php function barber($type){ echo "you wanted a $type haircut, no problem\n";} ...
分类:其他好文   时间:2020-07-02 18:30:36    阅读次数:63
ACwing(基础)---789. 数的范围
789. 数的范围 #include<iostream> #include<vector> #include<algorithm> using namespace std; const int maxn =1e5+10; int a[maxn]; int main() { int n,m,x; ci ...
分类:Windows程序   时间:2020-07-02 13:28:58    阅读次数:71
D - Grid-00100(Codeforces Round #654 (Div. 2))
题目链接:https://codeforces.com/contest/1371/problem/D 思路: 模拟一下在矩阵中挨个放1的过程,放的时候,每次斜着放n个,如果放不下了就放对角,画个图演示一下。 如图,放完9之后,把10放到右上角。 13之后,把14,15也放到右上角。 每次都放n个,左 ...
分类:其他好文   时间:2020-07-02 13:24:06    阅读次数:113
Leetcode 143 重排链表
143. 重排链表 给定一个单链表 L:L0→L1→…→Ln-1→Ln ,将其重新排列后变为: L0→Ln→L1→Ln-1→L2→Ln-2→… 你不能只是单纯的改变节点内部的值,而是需要实际的进行节点交换。 示例 1: 给定链表 1->2->3->4, 重新排列为 1->4->2->3. 示例 2: ...
分类:其他好文   时间:2020-07-02 13:09:00    阅读次数:54
安装 交叉编译工具连报错 /lib/ld-linux.so.2: bad ELF interpreter
是因为服务器系统为64位,但是交叉编译工具链是32位。 重装glibc yum install glibc.i686 遇到报错 There was a problem importing one of the Python modulesrequired to run yum. The error ...
分类:系统相关   时间:2020-07-01 20:42:43    阅读次数:89
18. 四数之和
给定一个包含 n 个整数的数组 nums 和一个目标值 target,判断 nums 中是否存在四个元素 a,b,c 和 d ,使得 a + b + c + d 的值与 target 相等?找出所有满足条件且不重复的四元组。注意:答案中不可以包含重复的四元组。示例:给定数组 nums = [1, 0 ...
分类:其他好文   时间:2020-06-30 20:51:20    阅读次数:59
https://www.luogu.com.cn/problem/P1025
#include<iostream> #include<cstring> using namespace std; int num[200],N,k,totalnum=0;//num保存每个数的数量 int show(){//显示目前的分法 for(int i=1;i<N;i++){ if(num[ ...
分类:Web程序   时间:2020-06-30 16:01:32    阅读次数:60
37568条   上一页 1 ... 59 60 61 62 63 ... 3757 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!