Submission #940817

#TimeUsernameProblemLanguageResultExecution timeMemory
940817FIFI_cppCombo (IOI18_combo)C++17
10 / 100
33 ms1460 KiB
#include <iostream> #include <vector> #include <algorithm> #include <numeric> #include <cstdlib> #include <cmath> #include <queue> #include <stack> #include <deque> #include <fstream> #include <iterator> #include <set> #include <map> #include <unordered_map> #include <iomanip> #include <cctype> #include <string> #include <cassert> #include <set> #include <bitset> #include <unordered_set> #include "combo.h" using ll = long long; #define pb push_back #define all(a) a.begin(),a.end() #define fast ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL); // xcode cant include bits/stdc++.h using namespace std; //ifstream fin ("fenceplan.in"); //ofstream fout ("fenceplan.out"); string guess_sequence(int N) { string res = ""; string chars = "ABXY"; for (int i = 0;i < N;i++) { for (int j = 0;j < 4;j++) { if (press(res + chars[j]) == i + 1) { res.pb(chars[j]); break; } } } return res; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...