Submission #586620

#TimeUsernameProblemLanguageResultExecution timeMemory
586620Omar_ElgedawyCave (IOI13_cave)C++14
12 / 100
8 ms412 KiB
#include <bits/stdc++.h> // #include "grader.c" #include "cave.h" using namespace std; #define cin(vec) for(auto& i : vec) cin >> i #define cout(vec) for(auto& i : vec) cout << i << " "; cout << "\n"; #define fast ios::sync_with_stdio(0);cin.tie(0); #define loop(i,a,b) for (int i = a; i < b; i++) #define F first #define S second #define pb(n) push_back(n) #define pf(n) push_front(n) #define dci(d) fixed<<setprecision(d) #define sp ' ' #define el '\n' #define all(v) v.begin(),v.end() // #define int long long #define try tryCombination int swich[5001]; void exploreCave(int n) { int doors[n]; for(int i=0;i<n;i++){ doors[i]=i; } for(int i=0;i<n;i++){ int x=try(swich); if(x==-1){ answer(swich,doors); } else{ swich[x]^=1; } } answer(swich,doors); }
#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...