码迷,mamicode.com
首页 >  
搜索关键字:std    ( 41627个结果
Codeforces Round #704 (Div. 2)
Codeforces 难得有一次不熬夜的比赛。 A 送分题,记得开 long long。 #include<iostream> #include<cstdio> #include<algorithm> #include<cstring> using namespace std; #define in ...
分类:其他好文   时间:2021-02-24 13:20:53    阅读次数:0
1090 Highest Price in Supply Chain (25 分)
A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in moving a product from supplier to customer ...
分类:其他好文   时间:2021-02-24 13:16:47    阅读次数:0
AtCoder Beginner Contest 145
A - Circle #include<bits/stdc++.h> using namespace std; const int N = 1e6 + 5; typedef long long LL; int r; int main(){ cin >> r; cout << r * r << end ...
分类:其他好文   时间:2021-02-24 13:15:50    阅读次数:0
Codeforces Round #702 (Div. 3)G(二分,模拟stl)
https://codeforces.com/contest/1490/problem/G 二分循环几轮,再二分哪个位置刚好够。 1 #define IO std::ios::sync_with_stdio(0),cin.tie(0),cout.tie(0); 2 #define bug(x) co ...
分类:其他好文   时间:2021-02-24 13:01:05    阅读次数:0
边连通分量
冗余路径 \(\href{https://www.acwing.com/solution/content/20697/}{边连通分量}\) \(本题是等价于加入最少边是整个图变成边连通分量(没有桥)\) #include <bits/stdc++.h> using namespace std; #d ...
分类:其他好文   时间:2021-02-22 12:51:09    阅读次数:0
每日一题——滑动窗口(2)
滑动窗口(2) 绝对差不超过限制的最长连续子数组 给你一个整数数组 nums ,和一个表示限制的整数 limit,请你返回最长连续子数组的长度,该子数组中的任意两个元素之间的绝对差必须小于或者等于 limit 。 如果不存在满足条件的子数组,则返回 0 。 看到子数组,想到了滑动窗口。 滑动窗口的优 ...
分类:其他好文   时间:2021-02-22 12:36:53    阅读次数:0
ABC 192 题解
A 模拟 B 模拟 C 模拟 #include<bits/stdc++.h> using namespace std; #define SET0(a) memset(a,0,sizeof(a)) #define FOR(i,a,b) for(int i=(a);i<=(b);i++) #define ...
分类:其他好文   时间:2021-02-22 12:10:05    阅读次数:0
P4124 [CQOI2016]手机号码(数位DP,前导0)
求n到m之间的吉利手机号,号码中要出现至少 3 个相邻的相同数字;号码中不能同时出现 8和 4。 这个题需要考虑两个点,一个是前导0,因为有前导0的必然不是手机号,一个是长度必须是11,否则也不是手机号 至于前导0,可以额外开一个维度,记录当前是否有前导0,但是会时内存x2,本题还不会爆,但是别的题 ...
分类:移动开发   时间:2021-02-20 12:37:11    阅读次数:0
调度场算法&&中缀表达式=>后缀表达式
#include<stdio.h> #include<string.h> int main(void){ char ch,stro[1001],stack[1001]; int numstack[1001]; int top=-1,head=-1; /************************ ...
分类:编程语言   时间:2021-02-20 12:11:32    阅读次数:0
餐巾计划问题(费用流)
题意 一个餐厅在相继的 \(N\) 天里,每天需用的餐巾数不尽相同。假设第 \(i\) 天需要 \(r_i\) 块餐巾 (\(i=1,2,\dots,N\))。 餐厅可以购买新的餐巾,每块餐巾的费用为 \(p\) 分;或者把旧餐巾送到快洗部,洗一块需 \(m\) 天,其费用为 \(f\) 分;或者送 ...
分类:其他好文   时间:2021-02-20 11:47:22    阅读次数:0
41627条   上一页 1 ... 30 31 32 33 34 ... 4163 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!