1 条题解
-
0
C++ :
#include <iostream> #include <cmath> using namespace std; typedef long long Long; int main() { Long N, L, R; Long ret; while (cin >> N >> L >> R) { //L--; Long rr = (Long)sqrt(R); Long ll = (Long)sqrt(L-1); ret = R - L + 1 - rr + ll; cout << ret << endl; } return 0; }
- 1
信息
- ID
- 1190
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- (无)
- 标签
- (无)
- 递交数
- 0
- 已通过
- 0
- 上传者