上一页 1 2 3 4 5 6 7 8 9 10 ··· 26 下一页
摘要: C - Power Strings #include <iostream> #include <vector> #include <algorithm> #include <string> #include <set> #include <queue> #include <map> #include 阅读全文
posted @ 2020-07-21 17:39 DeaL57 阅读(131) 评论(0) 推荐(0) 编辑
摘要: POJ 3974 #include <iostream> #include <vector> #include <algorithm> #include <string> #include <set> #include <queue> #include <map> #include <sstream 阅读全文
posted @ 2020-07-21 10:53 DeaL57 阅读(138) 评论(0) 推荐(0) 编辑
摘要: Keyboard Free #include <bits/stdc++.h> #define ll long long #define ld long double #define pii pair<int, int> #define rep(i,a,b) for(ll i=a;i<=b;i++) 阅读全文
posted @ 2020-07-17 00:15 DeaL57 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 叉乘,点乘,用结构体存cos^2 int n, ans = 1, X[N], Y[N]; struct node { double x,y; node(): node(0,0){} node(double x,double y):x(x),y(y){} bool operator < (const 阅读全文
posted @ 2020-07-16 08:50 DeaL57 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 多校赛第二场B题 #include <bits/stdc++.h> #define ll long long #define lll unsigned long long #define pii pair<int, int> #define rep(i,a,b) for(ll i=a;i<=b;i+ 阅读全文
posted @ 2020-07-16 08:47 DeaL57 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 题目描述 有一个a*b的整数组成的矩阵,现请你从中找出一个n*n的正方形区域,使得该区域所有数中的最大值和最小值的差最小。 输入格式 第一行为3个整数,分别表示a,b,n的值 第二行至第a+1行每行为b个非负整数,表示矩阵中相应位置上的数。每行相邻两数之间用一空格分隔。 输出格式 仅一个整数,为a* 阅读全文
posted @ 2020-07-15 15:56 DeaL57 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 1202B - You Are Given a Decimal String... 这个复杂度看着都觉得有点悬(O(100*N)),居然才用500ms #include <iostream> #include <vector> #include <algorithm> #include <strin 阅读全文
posted @ 2020-07-11 13:50 DeaL57 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 1204C - Anna, Svyatoslav and Maps 看别人题解才知道题目是怎么回事。。。 #include <iostream> #include <vector> #include <algorithm> #include <string> #include <set> #incl 阅读全文
posted @ 2020-07-10 23:44 DeaL57 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 1244D - Paint the Tree #include <iostream> #include <vector> #include <algorithm> #include <string> #include <set> #include <queue> #include <map> #in 阅读全文
posted @ 2020-07-10 00:49 DeaL57 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 1221D - Make The Fence Great Again 写不出状态转移方程有点难受 #include <iostream> #include <vector> #include <algorithm> #include <string> #include <set> #include 阅读全文
posted @ 2020-07-09 00:26 DeaL57 阅读(130) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 26 下一页