51nod 1010 只包含因子2 3 5的数
来源:互联网 发布:图书数据哪里最多 编辑:程序博客网 时间:2024/04/29 18:42
#include <bits/stdc++.h>using namespace std;long long limit=(long long)1<<60;set<long long> st;set<long long> ::iterator it;int main(){long long T,n;st.insert(2);st.insert(3);st.insert(5);for(it=st.begin();*it<limit;it++){st.insert((*it)*2);st.insert((*it)*3);st.insert((*it)*5);}cin>>T;while(T--){scanf("%lld",&n);printf("%lld\n",*st.lower_bound(n));}}
0 0
- 只包含因子2 3 5 的数----51Nod
- 51nod 1010 只包含因子2 3 5的数 (打表+二分)
- 51NOD 1010 只包含因子2 3 5的数(二分 + 预处理)
- 51nod 1010 只包含因子2 3 5的数
- 51nod:1010 只包含因子2 3 5的数
- 51nod 1010 只包含因子2 3 5的数
- 51nod 1010 只包含因子2 3 5的数(打表+二分)
- 51nod-1010 只包含因子2 3 5的数
- 51nod 1010 只包含因子2 3 5的数
- 51nod 1010 只包含因子2 3 5的数
- 51nod-1010 只包含因子2 3 5的数
- 51Nod 1010 只包含因子2 3 5的数
- 51nod 1010 只包含因子2 3 5的数
- 51nod-1010 只包含因子2 3 5的数
- 51nod 1010 只包含因子2 3 5的数【打表+二分】
- 51Nod--1010 只包含因子2 3 5的数
- 51nod 1010 只包含因子2 3 5的数
- 51nod 1010 只包含因子2 3 5的数(预处理+二分)
- Trio in E 橙花
- 51nod 1009 数字1的数量
- 两种C 常见排序方法
- inline-block和block元素水平居中显示
- [Rosyln学习记录2]添加引用
- 51nod 1010 只包含因子2 3 5的数
- 嵌入式的认识
- BMP图片的数据结构
- 51nod 1011 最大公约数GCD
- SSH(Spring MVC + Spring + hibernate)中配置文件解析
- Android中的getDimension()
- mysql 5.6安装与配置
- 经典问题之最少交换次数
- Java Reintroduction for Concepts