【leetcode】猜数字

 

int game(int* guess, int guessSize, int* answer, int answerSize){
    int count=0;
    for (int i=0; i<3; i++)
        if (guess[i]==answer[i]) count++;
    return count;
}

 

posted @ 2020-09-27 09:45  温暖了寂寞  阅读(146)  评论(0编辑  收藏  举报