码迷,mamicode.com
首页 >  
搜索关键字:tchar    ( 2435个结果
板子,单源最短路+堆优化
#include<iostream> #include<cstdio> #include<queue> #include<cstring> #include<algorithm> typedef long long LL; using namespace std; LL RD(){ LL out = ...
分类:其他好文   时间:2020-04-17 23:54:45    阅读次数:129
P2216 [HAOI2007]理想的正方形
题目:有一个a*b的整数组成的矩阵,现请你从中找出一个n*n的正方形区域,使得该区域所有数中的最大值和最小值的差最小 很显然我们可以用DP水掉这道题的大多数分。设f_max[i][j][k]表示以坐标[i,j]为右下角,边长为k的正方形的最大值,最小值同理再设一个。 因为每次处理的时候正方形边长+1 ...
分类:其他好文   时间:2020-04-12 20:31:52    阅读次数:80
C语言实验报告四
C程序设计实验报告 实验项目: 5.3.1-2求数列的前n项和;5.3.2水仙花数;5.3.4十进制转换;5.3.5-1百马百担问题;5.3.5-2求等差数列;5.3.5-3食品分配问题;九九乘法表。 姓名:熊晓东 实验地点:家 实验时间:2020.04.12 一、实验目的与要求 1、熟练地掌握wh ...
分类:编程语言   时间:2020-04-12 18:55:46    阅读次数:95
The 2019 China Collegiate Programming Contest Harbin Site I - Interesting Permutation 思维
```//#include#include#include#include#include#include#include#define int long longusing namespace std;#define rep_1(i,m,n) for(int i=m;i='0'&&ch='0'&&... ...
分类:其他好文   时间:2020-04-12 18:37:46    阅读次数:87
The 2019 China Collegiate Programming Contest Harbin Site A - Artful Paintings 差分约束
``` #include #include #include #include #include #include using namespace std; #define ll long long const int N=1e5+5; const int M=1e5+5; const int IN... ...
分类:其他好文   时间:2020-04-12 18:33:54    阅读次数:59
【线型DP】【LCIS】UVA_10635 Prince and Princess
嘤嘤嘤,我又来了,刚A完就写,这个沙雕题有丶恶心 题目: In an n×n chessboard, Prince and Princess plays a game. The squares in the chessboard are numbered 1, 2, 3, . . . , n?n, ...
分类:其他好文   时间:2020-04-09 00:58:08    阅读次数:300
[51nod2953] 土地划分
问题描述 Y国有N座城市,并且有M条双向公路将这些城市连接起来,并且任意两个城市至少有一条路径可以互达。 Y国的国王去世之后,他的两个儿子A和B都想成为新的国王,但他们都想让这个国家更加安定,不会用武力解决问题。 于是他们想将这个国家分成两个小国家A国和B国。现在,A拥有1号城市,B拥有N号城市,其 ...
分类:其他好文   时间:2020-04-08 22:33:19    阅读次数:73
Android实例-Delphi在运行时更改Android屏幕旋转(IOS也支持,但还没有写,下午我回来加上。不过我可没有苹果机,测试不了)
相关资料: https://www.it1352.com/624177.html 1 unit Unit2; 2 3 interface 4 5 uses 6 System.SysUtils, System.Types, System.UITypes, System.Classes, System. ...
分类:移动开发   时间:2020-04-08 09:42:13    阅读次数:92
传说中断言的使用
#include "stdafx.h" #include <pthread.h> #include <stdio.h> #include <windows.h> #include <stdio.h> //#include <assert.h> int main(int argc, _TCHAR *a ...
分类:其他好文   时间:2020-04-05 18:19:25    阅读次数:77
H - 蓬松的头发 HDU - 5504
给你一个N个整数的序列。 你应该选择一些数字(至少一个),并使它们的乘积尽可能大。 它保证你在初始序列中选择的任何数的乘积的绝对值不会大于263?1。 Input 在第一行有一个数字T(表示样例数)。 对于每个测试,第一行有一个数字N,下一行有N个数字。 1≤T≤1000 1≤N≤62 你最好在最后 ...
分类:其他好文   时间:2020-04-05 14:02:02    阅读次数:69
2435条   上一页 1 ... 12 13 14 15 16 ... 244 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!