//////////////////////////////////////////
#include<iostream>
#include<algorithm>
using namespace std;
int st[16];

 


int main()
{
    int i;
    int ans;
    while(cin>>st[0] && st[0]!=-1)
    {
        ans=0;
        i=1;
        while(cin>>st[i] && st[i]!=0)
            i++;
        sort(st,st+i);
        int j,k;
        for(j=0;j<i;j++)
            for(k=j+1;k<i;k++)
                if(st[k]==2*st[j])
                    ans++;

        cout<<ans<<endl;
    }
    return 0;
}

 

 

相关文章:

  • 2022-01-09
  • 2022-12-23
  • 2021-09-14
  • 2021-10-01
  • 2022-12-23
  • 2022-01-05
  • 2022-12-23
  • 2021-11-10
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-25
  • 2022-03-01
  • 2022-12-23
  • 2022-12-23
  • 2021-07-09
相关资源
相似解决方案