Submission #1298338

#TimeUsernameProblemLanguageResultExecution timeMemory
1298338bangchanSphinx's Riddle (IOI24_sphinx)C++20
3 / 100
1 ms400 KiB
#include "sphinx.h" #include <iostream> #include <vector> #include <map> #include <algorithm> #include <limits.h> using namespace std; typedef long long ll; typedef vector<int> vi; typedef vector<ll> vl; typedef vector<bool> vb; typedef vector<double> vd; typedef vector<string> vs; typedef vector<char> vc; typedef vector<vi> vvi; typedef pair<int,int> pii; typedef vector<pii> vii; typedef map<int, int> mii; typedef vector<vl> vvl; typedef pair<ll, ll> pll; typedef vector<pll> vpl; #define mod 1000000007 #define inf 10000000000000 #define F first #define S second #define nd '\n' #define forn(i, x, n) for (int i = x; i < int(n); i++) #define fornl(i, x, n) for(int i = x; i >= int(n); i--) #define fnd(x, y) find(x.begin(), x.end(), y) #define srt(x) sort(x.begin(), x.end()) #define debug(x) cout << #x << " = " << x << nd; #define debugv(x, s) cout << #x << " = "; forn(i, 0, s) cout << x[i] << " "; cout << nd; #define fastio ios_base::sync_with_stdio(false), cin.tie(0); #define freop(in, out) freopen("in.txt", "r", stdin); freopen("out.txt", "w", stdout); #define rmod(a, b) (a % mod - b % mod + mod) % mod #define smod(a, b) (a % mod + b % mod) % mod #define mmod(a, b) (a % mod) * (b % mod) % mod #define yes cout << "YES" << nd #define no cout << "NO" << nd #define pb push_back #define all(x) x.begin(), x.end() vector<int> find_colours(int n, vector<int> x, vector<int> y) { vi g(n); forn(i, 0, n){ vi a = {-1, i}; ll x = perform_experiment(a); if(x == 1) g[0] = i; } forn(i, 0, n){ vi a = {i, -1}; ll x = perform_experiment(a); if(x == 1) g[1] = i; } return g; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...