Kevin_BangNing @ 2024-08-20 17:14:21
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n,t[10001],a[10010];
cin>>n;
for (int i=1;i<n;i++){
cin>>t[i]>>a[i];
}
long long i=0,cnt=0;
for (int j=t[i];j<a[i];j++){
if (j*j+1==a[j]){
cnt++;
}
}
cout<<cnt;
return 0;
}
by super_JuRuo_Z6H @ 2024-09-01 15:35:09
布什,先看题目啊,做法都错了