您的答案為: 10 正確答案為: 202
public class a147 {
public static void main(String[] args) {
java.util.Scanner scanner=new java.util.Scanner(System.in);
while(scanner.hasNext()) {
int n=scanner.nextInt();
int m=scanner.nextInt();
int sum=0;
if(m>n) {
for(int i=n;i<m;i++) {
sum=sum+i;
if(sum>m) {
System.out.println(i-n+1);
break;
}else {
continue;
}
}}
if(n>m) {
for(int i=m;i<n;i++) {
sum=sum+i;
if(sum>n) {
System.out.println(i-m+1);
break;
}else {
continue;
}
}}
}
}
}