ChatGPT是如何判断算法的:

· · 个人记录

我发了如下:

#include<bits/stdc++.h>
using namespace std;
int Binary_Search(int x, int y){
    cout << x + y << endl;
    return 113;
}
signed main(){
    int a, b;
    cin >> a >> b;
    Binary_Search(a, b);
return 0;
}这段代码是什么算法

ChatGPT老哥回答的是:


这段代码是二分搜索算法。

666