제출 #613677

#제출 시각아이디문제언어결과실행 시간메모리
613677Mr_Husanboy커다란 상품 (IOI17_prize)C++14
20 / 100
1 ms336 KiB
#include "prize.h" #include<bits/stdc++.h> using namespace std; #define vector<int> vi; int find_best(int n) { int l = 0, r = n-1; while(l<=r){ int m = (l+r)/2; if(ask(m)[0] == 1){ r = m-1; }else l = m+1; } return l-1; }

컴파일 시 표준 에러 (stderr) 메시지

prize.cpp:5:9: warning: ISO C++11 requires whitespace after the macro name
    5 | #define vector<int> vi;
      |         ^~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...