摘要:
链接:https://ac.nowcoder.com/acm/contest/884/D?&headNav=acm&headNav=acm 来源:牛客网 题目描述 Doctor Elephant is testing his new program: output the bitwise or of 阅读全文
摘要:
F Planting Trees 思路:枚举子矩形上下边,再尺取法+单调队列求合法的最长的宽 AC代码: #include<bits/stdc++.h> typedef long long ll; using namespace std; int n,m,a[505][505]; int q1[50 阅读全文
摘要:
[提交] [状态] [命题人:admin] 题目描述 农夫 John 正在筹划从他的谷仓中售出 N 头奶牛,与此同时也有 N 个农夫想要购买奶牛。每个农夫都有刚好足够购买一头奶牛的钱并且将会把买来的这头奶牛用来挤奶。为了减少买来的牛挤不出奶的风险,农夫们每个人都将会购买两头不同的奶牛各自一半的产权, 阅读全文
摘要:
题目描述 小花梨得到了一个长度为n的数组a,现在要对它进行三种操作:⚫1 l r对所有的i∈[l,r],a[i]=a[i]∗minprime(a[i])⚫2 l r对所有的i∈[l,r],a[i]=a[i]/minprime(a[i])⚫3 x求a[x]的值现在给出初始数组a,对其进行m次操作,对于 阅读全文
摘要:
题目描述 Little Sub and Johann are good friends and they often play games together. Recently, they like playing with stones.They have n piles of stones in 阅读全文