题解 | #自守数#
自守数
http://www.nowcoder.com/practice/88ddd31618f04514ae3a689e83f3ab8e
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
if(sc.hasNext()){
int input = sc.nextInt();
int n=0;
for(int i=0;i<=input;i++){
if(i==(i*i)%10){
n++;
}
}
System.out.print(n);
}
}
}