&阿萨
&阿萨
全部文章
分类
归档
标签
去牛客网
登录
/
注册
&阿萨的博客
全部文章
(共6篇)
题解 | #Biorhythms#
利用甘特图好理解些 | | 23 | | 28 | | 33 保持两段不动,有一段(比如23)一直增加自身长度,当23*x减去28(33)剩余的还是28的整数倍,说明峰值重合。 | #include<iostream> using namespace std; int main...
2023-03-05
0
264
题解 | #最小长方形#
#include<iostream> using namespace std; int main() { int x[50]; int y[50]; int min_x=0,max_x=0,max_y=0,min_y=0; int i=0; int...
2023-03-05
0
236
题解 | #Flipping Pancake#
#include<iostream> using namespace std; int find_max(int a[], int n) { int num = 0; for (int i = 1; i < n; i++) { if (a[num] <= ...
2023-03-04
0
213
题解 | #Simple Sorting#
#include<iostream> using namespace std; #include<set> int main() { int n; set<int> s; cin>>n; int * ...
2023-03-03
0
275
题解 | #小白鼠排队#
#include<iostream> #include <random> #include <utility> using namespace std; #include<map> #include<string> int main() {...
2023-03-01
0
239
题解 | #Mileage Bank#
#include<iostream> using namespace std; #include<string> int main() { string place1, place2; int dis = 0; int sum = 0; char type; cin...
2023-03-01
1
385