一、Flask简介 Flask 是一个Python编写的一种轻量级的框架,只提供了web框架基本的功能,比其他的框架更加灵活、自由 二、Flask的安装 框架开发的时候,兼容性是一个很大的问题 开发环境:Python3.7版本,Flask1.1.1 版本 虚拟环境的使用 工作中会根据需求,在Pyth ...
分类:
其他好文 时间:
2020-06-14 16:40:57
阅读次数:
54
https://codeforces.com/contest/1364 ##A - XXXXX 题意:给一个 \(n\leq 10^5\) 的数组,求一段最长的区间,这段区间的和不被 \(x\) 整除。 题解:先考虑所有以第一个元素为左端点的区间,这时候往右扫描,得到的前缀和 \(prefix[i] ...
分类:
其他好文 时间:
2020-06-14 16:39:06
阅读次数:
62
题目: You are given a string s consisting only of characters 0 and 1. A substring [l,?r] of s is a string sl,sl?+?1,sl?+?2... sr, and its length equals ...
分类:
其他好文 时间:
2020-06-14 16:38:35
阅读次数:
51
#include<bits/stdc++.h> #define ls rt<<1 #define rs rt<<1|1 using namespace std; typedef long long ll; const int p=1e8+7; int ans1; int ans2; int ans3 ...
分类:
其他好文 时间:
2020-06-14 12:57:25
阅读次数:
164
P404.拿到指针就拿到了一切,拿到了句柄就拿到了一切 ...
分类:
其他好文 时间:
2020-06-14 12:49:40
阅读次数:
54
#include<bits/stdc++.h> #define ls rt<<1 #define rs rt<<1|1 using namespace std; typedef long long ll; const int p=1e8+7; vector<int>v[1001000],ans; i ...
分类:
其他好文 时间:
2020-06-14 12:35:49
阅读次数:
64
题目链接 点我呀 翻译 给你一个初始数字x, 你可以对它做两种操作: 1.整除2然后加上10 2.减去10 问你在n次1操作和m次2操作之内, 能不能把数字x变成是小于0的。 题解 n和m都小于30? 这不傻逼题吗? dp[i][j]表示i次1操作,j次1操作x能到达的最小值。 \(dp[i][j] ...
分类:
其他好文 时间:
2020-06-14 11:08:14
阅读次数:
55
题目链接 点我呀 翻译 给你3条边x, y, z的范围, 且满足x < y < z, 让你选出3条合法的边, 使得这3条边能组成三角形。 保证答案总是存在。 题解 因为x < y < z, 所以x(y)和z相加的话, 肯定是大于y(x)的。 因此只要判断x+y是不是大于z就可以了。 因为说了一定会有 ...
分类:
其他好文 时间:
2020-06-14 10:41:15
阅读次数:
64
Ribbon简介Spring Cloud Ribbon是基于Netflix Ribbon实现的一套客户端负载均衡的工具。 简单的说,Ribbon是Netflix发布的开源项目,主要功能是提供客户端的软件负载均衡算法,将Netflix的中间层服务连接在一起。Ribbon客户端组件提供一系列完善的配置项 ...
分类:
编程语言 时间:
2020-06-13 22:52:43
阅读次数:
75
A - Minimal Square #include <bits/stdc++.h> using namespace std; const int maxn = 1e4+5; int main() { int t; cin >> t; while (t--) { int a, b; cin >> ...
分类:
其他好文 时间:
2020-06-13 21:16:11
阅读次数:
69