![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
乱搞
wwt9b15bs
这个作者很懒,什么都没留下…
展开
-
【题解】[牛客OI周赛2-提高组]A.游戏 乱搞
题目链接 #include<cstdio> const int N=1e3+10; char s[N][N]; int n,m,t; int main() { //freopen("in.txt","r",stdin); scanf("%d",&t); while(t--) { scanf("%d%d",&n,&原创 2018-10-31 14:07:19 · 174 阅读 · 1 评论 -
【题解】[牛客OI周赛2-提高组]B.水果蛋糕 乱搞
题目链接 #include<cstdio> #include<algorithm> using namespace std; int main() { long long n,m; scanf("%lld%lld",&n,&m); if(n<m)swap(n,m); if(m<=2)printf("%lld\n",m*n); ...原创 2018-10-31 15:19:22 · 192 阅读 · 0 评论 -
【题解】[牛客网NOIP赛前集训营-提高组(第四场)]B.区间 乱搞
题目链接 #include<cstdio> #include<algorithm> using namespace std; typedef long long ll; const int MAXN=1e7+10; ll a[MAXN]; int r[MAXN],N,ans=1; #define RG register #define getc() (S == T ...原创 2018-10-30 22:11:37 · 143 阅读 · 0 评论 -
【题解】洛谷P1351[NOIP2014]联合权值 乱搞
题目链接 处理出每个点相邻点的和,然后直接搞一搞 #include<cstdio> #include<vector> #include<algorithm> using namespace std; const int N=2e5+10,mod=10007; inline int read() { int x=0,f=0;char ch=getchar(...原创 2018-11-06 15:12:26 · 199 阅读 · 0 评论