//5번 문항
#include <stdio.h>
int a, b, arr[]={1, 3, 4, 4, 4, 7, 9, 9, 10, 11, 12, 47, 47, 50}; //10, 11, 12는 임의의 숫자임
int f1(int k) {
int s=0, e=n;
while(s<e) {
int m=(s+e)/2;
if(arr[m]<k) s=m+1;
else e=m;
}
return e;
}
int f2(int k) {
int s=0, e=n;
while(s<e) {
int m=(s+e)/2;
if(arr[m]<=k) s=m+1;
else e=m;
}
return e;
}
int main() {
scanf("%d%d", &a, &b);
printf("%d", /*본인이 쓴 코드 작성*/ );
}
//6번 문항
#include <stdio.h>
#include <vector>
struct node {int to; int w;};
std::vector<node> G[101];
To embed this project on your website, copy the following code and paste it into your website's HTML: