Submission #1195808

#TimeUsernameProblemLanguageResultExecution timeMemory
1195808ezdp커다란 상품 (IOI17_prize)C++20
20 / 100
23 ms408 KiB
#include "prize.h" int find_best(int n){ for(int l = 0; l < n; ){ std::vector<int> cur = ask(l); if(cur[0] == 0 && cur[1] == 0) return l; int low = l, high = n - 1, r = l; while(low <= high){ int mid = (low + high) / 2; std::vector<int> tmp = ask(mid); if(tmp == cur){ r = mid; low = mid + 1; } else{ high = mid - 1; } } l = r + 1; } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...