1152 -- 整除个数
来源:互联网 发布:泽诺尼亚s下载最新数据 编辑:程序博客网 时间:2024/06/08 15:26
整除个数
Time Limit:1000MS Memory Limit:65536K
Total Submit:289 Accepted:139
Description
1、2、3… …n这n(0< n< =1000000000)个数中有多少个数可以被正整数b整除。
Input
输入包含多组数据
每组数据占一行,每行给出两个正整数n、b。
Output
输出每组数据相应的结果。
Sample Input
2 15 310 4
Sample Output
212
Source
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AK1152 { class Program { static void Main(string[] args) { string sb; while ((sb = Console.ReadLine()) != null) { string[] s = sb.Split(); long a = long.Parse(s[0]), b = long.Parse(s[1]); Console.WriteLine(a / b); } } } }
0 0
- 1152 -- 整除个数
- 整除个数
- 整除个数
- 整除个数
- 整除个数
- 整除个数
- 整除个数
- 整除个数
- 整除个数
- 南阳理工:整除个数
- NYOJ 399 整除个数
- nyoj-399-整除个数
- 399 整除个数
- 399 整除个数
- NYOJ-整除个数(水题)
- NYOJ-整除个数
- nyoj554整除个数
- NYOJ 399 整除个数
- 自动更改window系统变量且不用重启的方法!
- 1151 -- key数
- 堆和栈的区别
- Hadoop第10周练习—Mahout部署及进行20newsgroup数据分析例子
- poj 3259 Wormholes
- 1152 -- 整除个数
- 伸展树的删除例程
- [推荐]Rolling cURL: PHP并发最佳实践 商品价格监控 curl_multi族 函数
- hql关联表、map/list查询
- 车型识别“A Large-Scale Car Dataset for Fine-Grained Categorization and Verification”
- 1153 -- p次方求和
- HTML5 webSQL动态查询前端数据库表
- Mac系统常见的指令
- Codevs 题目1690 开关灯(线段树区间异或)