Submission #860877

# Submission time Handle Problem Language Result Execution time Memory
860877 2023-10-14T17:22:38 Z vjudge1 Xylophone (JOI18_xylophone) C++17
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
#include "\x78\x79\x6c\x6f\x70\x68\x6f\x6e\x65\x2e\x68" // dont deobfuscate plss

#define pb push_back
#define eb emplace_back
#define sz(x) (int)x.size()
#define all(x) x.begin(), x.end()
#define uniq(x) x.erase(unique(all(x)), x.end())
#define rall(x) x.rbegin(), x.rend()
//#define int long long

using namespace std;

using ll = long long;
using ull = unsigned long long;
using ld = long double;
using pii = pair<int, int>;
using pll = pair<ll, ll>;

const int mod = 1e9 + 7;
const int LOG = 20;
const int maxn = 1e5 + 5;
const double eps = 1e-9;

void setIO() {
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
}

int dp[5001][5001];

int ask(int l, int r) {
    if(dp[l][r] != -1) return dp[l][r];
    return dp[l][r] = query(l, r);
}

void solve(int n) {
    memset(dp, -1, sizeof(dp));

    int l=1, r=n;
    int p1 = 0;

    while(l <= r) {
        int mid = (l + r) / 2;

        if(ask(mid, n) == n-1) {
            p1 = mid;
            l = mid + 1;
        } else r = mid - 1;
    }

    vector<int> ans(n+1, 0);
    ans[p1] = 1;

    for(int i=p1+1; i<=n; i++)
        ans[i] = ans[i-1] + ask(i-1, i);
    for(int i=p1-1; i>=1; i--)
        ans[i] = ans[i+1] + ask(i, i+1);

    for(int i=1; i<=n; i++)
        answer(i, ans[i]);
}

int32_t main() {
    setIO();

    //code starts here

    return 0;
}

Compilation message

xylophone.cpp:2:10: fatal error: \x78\x79\x6c\x6f\x70\x68\x6f\x6e\x65\x2e\x68: No such file or directory
    2 | #include "\x78\x79\x6c\x6f\x70\x68\x6f\x6e\x65\x2e\x68" // dont deobfuscate plss
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.