摘要:
题意: 给定两个数$n$和$x$,构造一个序列,设为$a[l]$($l$不确定) $1$、$1\leq a[i] define start ios::sync_with_stdio(false);cin.tie(0);cout.tie(0); define ll long long define i 阅读全文
摘要:
题意 对于n个栅栏,对于每个$i$,有高度$a[i]$,对于任意$2 define start ios::sync_with_stdio(false);cin.tie(0);cout.tie(0); define ll long long define int ll define ls st usi 阅读全文
摘要:
A - Important Exam 题意:n个人,m道题,每道题有A B C D E五个选项,每个人在每道题都有一个选项,每道题有一个分值,问所有人的分值总和最多为多少。 分析:对某道题,他的分值是固定的,总共有n个人作答,挑选5个选项中选的人最多的作为答案,可得到分数最多。 1 #include 阅读全文
摘要:
题目描述 God Water likes to eat meat, fish and chocolate very much, but unfortunately, the doctor tells him that some sequence of eating will make them po 阅读全文
摘要:
A - City Day 题意:给n,x,y和数组a[n],求最小的下标d,使得有a[d-x,d-x+1,……d-1,d+1,d-1,d+1,……d+y-1,d+y]都比a[d]小,若d-x<=0则从1开始,若d+y>n,则从n为结尾。 分析:对于a[i],要在左端找到比a[i]大的且最近的数,在右 阅读全文