Submission #95706

#TimeUsernameProblemLanguageResultExecution timeMemory
95706helloworldworldCombo (IOI18_combo)C++14
10 / 100
104 ms444 KiB
#include <bits/stdc++.h> #include "combo.h" using namespace std; string guess_sequence(int n) { char arr[4]; arr[0]='A'; arr[1]='B'; arr[2]='X'; arr[3]='Y'; string p=""; int coins=press(p); string S=""; for(int i=0;i<n;i++) { for(int j=0;j<4;j++){ if(press(p+arr[j])==i+1){ p+=arr[j]; break; } } } return p; }

Compilation message (stderr)

combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:14:9: warning: unused variable 'coins' [-Wunused-variable]
   14 |     int coins=press(p);
      |         ^~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...