poj 1552 Doubles
来源:互联网 发布:淘宝一钻卖家发布数量 编辑:程序博客网 时间:2024/06/06 18:06
#include <iostream>using namespace std;int num[20];int main(){ int n, i, j, c; while (cin >> num[0] && num[0] != -1) { n = c = 0; while (num[n]) { n++; cin >> num[n]; } for (i = 0; i < n; i++) for (j = i+1; j < n; j++) { if (num[i] == num[j] * 2 || num[i] * 2 == num[j]) c++; } cout << c << endl; } system("pause");}
- POJ 1552 Doubles
- poj 1552 Doubles 水
- poj 1552 Doubles
- 【POJ-1552】Doubles
- Poj 1552 Doubles(水题)
- POJ 1552 Doubles
- poj 1552 Doubles
- POJ 1552 - Doubles
- Doubles - POJ 1552 水题
- POJ 1552 Doubles
- POJ 1552-Doubles
- POJ 1552 Doubles
- POJ 1552 Doubles
- POJ 1552 Doubles
- POJ 1552 Doubles
- POJ 1552 Doubles 水
- Doubles POJ 1552
- POJ 1552 Doubles G++
- Android 修改Bitmap 图片像素的信息 R G B 颜色值 详解
- 去看李记者,天津印象
- 上转型对象的成员变量和成员方法的调用
- experiment:use rsize let std::wstring.compare is right
- jQuery LigerUI 使用教程入门篇
- poj 1552 Doubles
- Response的一些方法总结
- u-boot编译环境建立
- hibernate中参数绑定
- struts2 分页
- Android 调用相册 拍照 实现系统控件缩放 切割图片
- SOAP协议基础
- zendframework Fatal error: Cannot return string offsets by reference 处置
- static用法