[Aimee](P1855 榨取kkksc03) 很简单的dp #include<iostream> #include<cstring> using namespace std; int n,m,t; int mi[1000]; int ti[1000]; int dp[201][301][201] ...
分类:
其他好文 时间:
2021-03-08 13:47:33
阅读次数:
0
例子:在判断三角形形状的一个程序中,会出现 if-else 的多层嵌套,可利用程序的顺序执行结构重构代码,使其更可读。如果还想保证代码的安全性,可以用函数封装这段代码。 #include <stdio.h> #include <stdlib.h> #define PI 3.1415926 /* ru ...
分类:
其他好文 时间:
2021-03-08 13:44:39
阅读次数:
0
queue //STL之queue用法 //实现先进先出 #include<stdio.h> #include<queue> using namespace std; int main() { //定义 queue<int> qu; //进队 qu.push(1); qu.push(2); qu.p ...
分类:
其他好文 时间:
2021-03-08 13:44:24
阅读次数:
0
出现的问题 在做编程题的的时候,遇到了一个很奇怪的错误,出问题的代码如下: 1 #include <cstdio> 2 using namespace std; 3 4 int main() { 5 int c; 6 bool b; 7 // printf("%p %p", &c, &b); // ...
分类:
其他好文 时间:
2021-03-08 13:38:55
阅读次数:
0
//STL之MAP用法 //以往定义的数组实现了int类型向其他类型的映射 //现在想要实现其他类型向其他类型的映射 //通过map实现键值对存储 #include<stdio.h> #include<map> using namespace std; int main() { //定义 map<c ...
分类:
其他好文 时间:
2021-03-08 13:34:05
阅读次数:
0
超短文警告! 埃氏筛: #include <iostream> #include <cstring> #include <stdio.h> #define HRiver2 return #define Warma 0 #define ll long long #define maxn 114514 ...
分类:
其他好文 时间:
2021-03-08 13:23:25
阅读次数:
0
#include <bits/stdc++.h> using namespace std; int ans,a[1000],dp[1000],n; int main(){ scanf("%d",&n); for(int i=1;i<=n;i++){ scanf("%d",&a[i]); } for( ...
分类:
其他好文 时间:
2021-03-08 13:08:20
阅读次数:
0
/* 【Arduino】168种传感器模块系列实验(资料代码+仿真编程+图形编程) 实验七十六:TTL转RS-485模块 MAX485 RS485模块 将Arduino上的数字引脚10、11设置为软串口RX和TX与MAX485模块上的RO和DI连接 MAX485模块上的RE和DE连接在一起用一个引脚 ...
分类:
其他好文 时间:
2021-03-08 13:03:25
阅读次数:
0
rope (类似于块状链表的结构) 需要增加的预处理指令: #include<ext/rope> using namespace __gnu_cxx; rope<int> rp; 基本操作: 在末尾插入 \(x\) : rp.push_back(x); 在 \(pos\) 处插入 \(x\) : r ...
分类:
其他好文 时间:
2021-03-06 15:01:46
阅读次数:
0
索引的简介: 索引分为聚集索引和非聚集索引,数据库中的索引类似于一本书的目录,在一本书中通过目录可以快速找到你想要的信息,而不需要读完全书。 索引主要目的是提高了SQL Server系统的性能,加快数据的查询速度与减少系统的响应时间 。 但是索引对于提高查询性能也不是万能的,也不是建立越多的索引就越 ...
分类:
数据库 时间:
2021-03-06 14:55:22
阅读次数:
0