Submission #952774

# Submission time Handle Problem Language Result Execution time Memory
952774 2024-03-24T19:06:10 Z kilikuma Handcrafted Gift (IOI20_gift) C++14
0 / 100
1 ms 604 KB
#include "gift.h"
#include <bits/stdc++.h>

using namespace std;

int construct(int n, int r, vector<int> a, vector<int> b, vector<int> x) {
    for (int i = 0; i < r; i ++) {
      if (a[i] == b[i])
        return 0;
    }
    string s = "";
    for (int i = 0; i < n; i ++) {
      if (i % 2) s += 'R';
      else s += 'L';
    }
    craft(s);
    return 1;
}
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 348 KB Execution killed with signal 6
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 604 KB Execution killed with signal 6
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 348 KB Execution killed with signal 6
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Possible does not match answer file
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 348 KB Execution killed with signal 6
2 Halted 0 ms 0 KB -