hdu 1303 doubles …
来源:互联网 发布:mac air与mac pro区别 编辑:程序博客网 时间:2024/05/20 15:57
#include"iostream"
#include"stdio.h"
#include"algorithm"
using namespace std;
int main()
{
int i,j,n,count,a[20];
cin>>a[0];
while(a[0]!=-1)
{
for(n=1;;n++)
{
cin>>a[n];
if(a[n]==0) break;
}
count=0;
for(i=0;i
for(j=i+1;j
{
if(a[i]*2==a[j] || a[i]==a[j]*2)
count++;
}
printf("%d\n",count);
cin>>a[0];
}
}
- hdu 1303 doubles …
- HDU 1303 Doubles
- POJ 1552 Doubles (水题)
- ZZULI_SummerPractice(3) HDU 1…
- HDU 1075 What Are You Talking …
- hdu 2039 三角形 /…
- hdu 1374 || poj22…
- hdu 2708 || poj21…
- HDU 1423 Greatest Common Increas…
- hdu 1197 Specialized …
- hdu 1497 Simple Library Manageme…
- hdu 1798 Tell me the area …
- HDU 1028 Ignatius and the Princ…
- HDU 1025 Constructing Roads In …
- HDU 4251 The Famous ICPC Team Ag…
- hdu 1806 Frequent values 线段…
- hdu 1692 Destroy the Well of Lif…
- hdu 1075 what are you talking ab…
- hdu 3351 //大括号配对儿 DP
- hdu 2039 三角形 /…
- *hdu 2412 Party at Hali-Bula
- hdu 2040 亲合数
- hdu 1064 Financial&nbs…
- hdu 1303 doubles …
- poj 2739 sum of&n…
- hdu 1065 I Think&…
- hdu 1056 hangover&nbsp…
- 我的博客今天0岁324天了,我领取了…
- poj 3299 humidex
- hdu 1197 Specialized …
- hdu 2734 quicksum //简单校验算法
- hdu 1304 A Contes…