#include <iostream>
#include <iomanip>
#include <cstring>
#include <cctype>
#include <sstream>
#include <cstdio>
#include <cmath>
#include <stdlib.h>
#include <fstream>
#include <vector>
#include <algorithm>
#include <unordered_map>
#include <map>
typedef long long ll;
using namespace std;
int main(int argc, const char * argv[])
{
ios_base::sync_with_stdio(false);
cin.tie(0);
ll a,b;
while(cin>>a>>b)
{
if(a==0 && b==0) break;
ll sum = 0;
for(ll j = sqrt(a);j <= sqrt(b);j++)
{
if(pow(j, 2)>=a && pow(j, 2)<=b)
sum += 1;
}
cout<<sum<<'\n';
}
return 0;
}
//你這裡就放
#include <bits/stdc++.h> //我覺得你應該會比較輕鬆 typedef long long ll; using namespace std; int main(int argc, const char * argv[]) { ios_base::sync_with_stdio(false); cin.tie(0); ll a,b; while(cin>>a>>b) { if(a==0 && b==0) break; ll sum = 0; for(ll j = sqrt(a);j <= sqrt(b);j++) { if(pow(j, 2)>=a && pow(j, 2)<=b) sum += 1; } cout<<sum<<'\n'; } return 0; }
//你這裡就放
#include <bits/stdc++.h> //我覺得你應該會比較輕鬆 typedef long long ll; using namespace std; int main(int argc, const char * argv[]) { ios_base::sync_with_stdio(false); cin.tie(0); ll a,b; while(cin>>a>>b) { if(a==0 && b==0) break; ll sum = 0; for(ll j = sqrt(a);j <= sqrt(b);j++) { if(pow(j, 2)>=a && pow(j, 2)<=b) sum += 1; } cout<<sum<<'\n'; } return 0; }
根本不須這麼多標頭檔