# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
679745 | parsadox2 | Sjeckanje (COCI21_sjeckanje) | C++14 | 105 ms | 596 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define pb push_back
#define F first
#define S second
#define debug(x) cout << #x << "= " << x << ", "
#define ll long long
#define fast ios::sync_with_stdio(false), cin.tie(0), cout.tie(0)
#define SZ(x) (int) x.size()
#define int long long
using namespace std;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
const int maxn = 3e3 + 10 , mod = 1e9 + 7;
int n , q , ar[maxn] , dp[maxn] , sum;
bool marked[maxn];
void update(int x)
{
if(x <= 0 || x + 1 >= n)
return;
if(ar[x] >= ar[x - 1] && ar[x] >= ar[x + 1])
marked[x] = true;
else if(ar[x] <= ar[x - 1] && ar[x] <= ar[x + 1])
marked[x] = true;
else
marked[x] = false;
}
void update_dp()
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |