https://www.acwing.com/problem/content/1133/ #include <bits/stdc++.h> using namespace std; #define IO ios::sync_with_stdio(false);cin.tie(0); cout.tie ...
分类:
其他好文 时间:
2021-02-15 11:53:38
阅读次数:
0
介绍Spring Boot 注解@ComponentScan的作用和基本用法 ...
分类:
编程语言 时间:
2021-02-09 12:25:15
阅读次数:
0
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
题目链接:AcWing 374. 导弹防御塔 题面: ? Freda的城堡遭到 \(M\) 个入侵者的袭击!Freda控制着 \(N\) 座导弹防御塔,每座塔有足够数量的导弹,但每次只能发射一枚。在发射导弹时,导弹需要 \(T1\) 秒才能从防御塔中射出,而在发射导弹后,发射这枚导弹的防御塔需要 \ ...
#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
Suppose you have to evaluate an expression like ABCDE where A,B,C,D and E are matrices. Since matrix multiplication is associative, the order in which ...
分类:
其他好文 时间:
2021-02-08 11:54:10
阅读次数:
0
文章中若有不严谨或错误的地方,欢迎在评论中指出QAQ Description 题库链接 有两个长度为 \(n\) 的数组分别为 \(a,b\) ,其中 \(a_i = 2^{b_i}\) ,现给出b数组,问是否存在两个 \(a\) 的子数组,它们的区间和相同,若有则输出 "YES",否则输出 "NO ...
分类:
其他好文 时间:
2021-02-08 11:48:50
阅读次数:
0
#单片机最小系统 电源电路 5V和3.3V是一个概念值,非准确值。 数字电路常用电源有24V,12V,5V,3.3V,2.5V,1.8V。 晶振电路 有源晶振(常称为振荡器)和无源晶振(常称为晶体) 接法: 复位电路 1.原理图: 上电复位:正常工作时K17断开,RST为0V;上电瞬间电容充电,电容 ...
分类:
其他好文 时间:
2021-02-06 12:09:15
阅读次数:
0
1 #include <stdio.h> 2 #include <stdlib.h> 3 4 typedef struct PolyNode *Polynomial; 5 struct PolyNode { 6 int coef; 7 int expon; 8 Polynomial link; 9 ...
分类:
其他好文 时间:
2021-02-06 11:57:04
阅读次数:
0
日常不搞清楚题意乱写 WA。 看值域这么小,考虑枚举最大高度 \(maxh\): \(h_i>maxh\) 且 \(w_i>maxh\),不合法。 \(h_i>maxh\) 且 \(w_i\leq maxh\),必须换。 \(h_i\leq maxh\) 且 \(w_i>maxh\),不能换。 \( ...
分类:
其他好文 时间:
2021-02-04 12:24:22
阅读次数:
0