B. Sifid and Strange Subsequences
A sequence (b1,b2,…,bk) is called strange, if the absolute difference between any pair of its elements is greater than or equal to the maximum element in the sequence. Formally speaking, it’s strange if for every pair (i,j) with 1≤it; while(t--) { int n,g=1,cnt=0; cin>>n; for(int i=1;i>a[i]; if(a[i]
关注
打赏