码迷,mamicode.com
首页 >  
搜索关键字:std    ( 41627个结果
2021.01.30 Rating赛 解题/补题报告
A 一共n个人,去a餐厅的有a人,去b餐厅有b人,两个都去的有c人,求没有去的有多少,如果数据不合理或没去的人数少于1,输出-1 #include<bits/stdc++.h> using namespace std; #define ll long long int main() { int n, ...
分类:其他好文   时间:2021-02-09 11:44:03    阅读次数:0
Saruman's Army
#include<cstdio> #include<iostream> #include<set> #include<algorithm> using namespace std; set<int> s; int main(void) { int R, n; while (cin >> R >> n ...
分类:其他好文   时间:2021-02-08 12:52:08    阅读次数: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
2.5 上海马拉松 C题题解
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef double db; ll a, b, c, d; void solve1() { if (a > 0) { puts("(-inf,inf)"); ...
分类:其他好文   时间:2021-02-08 12:05:36    阅读次数:0
UOJ87 mx的仙人掌 虚仙人掌
UOJ87 mx的仙人掌 这里没有用传统的方点外接圆点的做法,而是方点虚树上儿子跳到方点所在环上单调队列处理,本质上是一样的. code //爽! #include<bits/stdc++.h> using namespace std; typedef long long ll; const int ...
分类:其他好文   时间:2021-02-06 12:15:50    阅读次数:0
离散化
1 #include<iostream> 2 #include<cstdio> 3 #include<cstdlib> 4 #include<algorithm> 5 using namespace std; 6 7 int n,tot,a[1010],c[1010]; 8 9 int main() ...
分类:其他好文   时间:2021-02-06 12:13:59    阅读次数:0
第一章---线性表之单链表的操作
#include <iostream> #include <stdlib.h> using namespace std; typedef int DataType; //使int重命名为DataType DataType flag = 0; //flag是用来判断神魔时候输入数据结束 typedef ...
分类:其他好文   时间:2021-02-06 11:52:00    阅读次数:0
linux的目录结构
linux目录结构图 1、根目录表示方式:/ 2、根目录下常见目录: -/bin:即binary,存放二进制文件、可执行程序和shell命令等; -/dev:即device,linux的设备文件,如硬盘、显卡、显示器等; -/lib:linux运行的时候需要加载的一些动态库 -/mnt:用户收到挂载 ...
分类:系统相关   时间:2021-02-06 11:42:00    阅读次数:0
sdl win 播放video hello--
#include <stdio.h> #include <stdlib.h> extern "C" { #include <SDL.h> #include "libavutil/opt.h" #include "libavutil/channel_layout.h" #include "libavu ...
分类:Windows程序   时间:2021-02-05 11:02:29    阅读次数:0
八皇后(92种解)
//八皇后#include<bits/stdc++.h>using namespace std;int a[9];bool b[9],c[17],d[17];int num;int print(){ num++; for(int i=1;i<=8;i++) cout<<"("<<i<<","<<a[ ...
分类:其他好文   时间:2021-02-05 10:58:33    阅读次数:0
41627条   上一页 1 ... 35 36 37 38 39 ... 4163 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!