FZU 2104 Floor problem
2013-11-26 19:26
239 查看
题意:求向下取整的和
#include <iostream> #include <cstdio> #include <cstring> #include <algorithm> using namespace std; int n,L,R; int main(){ int t; scanf("%d",&t); while (t--){ scanf("%d%d%d",&n,&L,&R); int sum = 0; for (int i = L; i <= R; i++) sum += n/i; printf("%d\n",sum); } return 0; }
相关文章推荐
- FZU 2104 Floor problem (水题)
- FZU 2104 Floor problem(floor)
- fzu 2104 Floor problem(水题)
- FZU - 2104 Floor problem
- FZU Problem 2104 Floor problem (数学啊 )
- FZU 2104 Floor problem(水题)
- FZU 2104 C - Floor problem
- FZU 2104 (13.11.28)
- FZU 2104 (13.11.28)
- FZU Problem 2104 Floor problem
- D Floor problem(FZU 2104)
- FZU2104之Floor problem
- FZU 1901 KMP 有点意思的题了
- FZU-2105 Digits Count(线段树)
- FZU 2231 平行四边形数(几何)(思维)
- poj 2104 K-th number
- FZU Problem 2140 Forever 0.5(计算几何构造,依旧考查思维)
- 主席树----POJ 2104(主席树裸题)(转)
- POJ 2104 K-th Number
- FZU 2082 过路费(树链剖分+线段树)