题目链接:https://leetcode-cn.com/problems/guess-numbers/
题目如下:
class Solution {
public int game(int[] guess, int[] answer) {
int i,count=0;
for(i=0;i<guess.length;i++)
if(guess[i]==answer[i]) count++;
return count;
}
}