Submission #503143

# Submission time Handle Problem Language Result Execution time Memory
503143 2022-01-07T11:27:09 Z stanislavpolyn "The Lyuboyn" code (IZhO19_lyuboyn) C++17
3 / 100
1 ms 332 KB
#include <bits/stdc++.h>

#define fr(i, a, b) for(int i = (a); i <= (b); ++i)
#define rf(i, a, b) for(int i = (a); i >= (b); --i)
#define fe(x, y) for(auto& x : y)

#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define mt make_tuple

#define all(x) (x).begin(), (x).end()
#define pw(x) (1LL << (x))
#define sz(x) (int)(x).size()

using namespace std;

mt19937_64 rng(chrono::system_clock::now().time_since_epoch().count());

#include <ext/pb_ds/assoc_container.hpp>
using namespace __gnu_pbds;
template<typename T>
using oset = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
#define fbo find_by_order
#define ook order_of_key

template<typename T>
bool umn(T& a, T b) { return (a > b ? (a = b, 1) : 0); }
template<typename T>
bool umx(T& a, T b) { return (a < b ? (a = b, 1) : 0); }

using ll = long long;
using ld = long double;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
template<typename T>
using ve = vector<T>;

int n, k, t;
string s;

ve<int> ans;
bool vis[pw(18)];

int main() {
#ifdef LOCAL
    freopen("input.txt", "r", stdin);
    freopen("output.txt", "w", stdout);
    ios::sync_with_stdio(0);
    cin.tie(0);
#else
//    freopen("input.txt", "r", stdin);
//    freopen("output.txt", "w", stdout);
    ios::sync_with_stdio(0);
    cin.tie(0);
#endif

    cin >> n >> k >> t;

    cout << "-1\n";
//    cin >> s;

//    vis[0] = 1;
//    ans.pb(0);
//    while(1) {
//        bool ok = 0;
//        fr(mask, 0, pw(n) - 1) {
//            if(!vis[mask] && __builtin_popcount(mask ^ ans.back()) == k) {
//                vis[mask] = 1;
//                ans.pb(mask);
//                ok = 1;
//                break;
//            }
//        }
//        if(!ok) {
//            break;
//        }
//    }
//
//    cout << sz(ans) << "\n";
//    fe(x, ans) {
//        cout << bitset<4>(x) << "\n";
//    }

    return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB Output -1 while solution exists
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB Output -1 while solution exists
# Verdict Execution time Memory Grader output
1 Correct 0 ms 204 KB Ok
2 Correct 0 ms 204 KB Ok
3 Correct 0 ms 324 KB Ok
4 Correct 0 ms 204 KB Ok
5 Correct 0 ms 320 KB Ok
6 Correct 0 ms 204 KB Ok
7 Correct 0 ms 332 KB Ok
8 Correct 1 ms 332 KB Ok
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 324 KB Output -1 while solution exists
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB Output -1 while solution exists
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 324 KB Output -1 while solution exists
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 324 KB Output -1 while solution exists
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 324 KB Output -1 while solution exists
2 Halted 0 ms 0 KB -