Tên đăng nhập Điểm ▾ Bài tập Giới thiệu
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001
0905438028
Hưng Trương
0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0

include<bits/stdc++.h>

using namespace std;
long long n,x;
bool scp(long long m)
{
long long x=sqrt(m);
if(x*x==m) return true;
else return false;
}
main()
{
long long L,R,dem=0;
cin>>L>>R;
for (int i=L;i<=R;i++)
if (scp(i)) dem++;
cout<<dem;
}

32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001
cpbeginner 1325
Vũ Quốc Lâm, PTNK
0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0

Nothing to say

32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001
mdung
Lê Mỹ Dung
0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0

n=int(input())
while not n == 1:
print(n, end= ' ')
if n%2==0:
n //= 2
else:
n *= 3
n += 1
if n == 1:
print(n, end=' ')

32001 0 0
32001 0 0
32001 0 0

HS lớp 8

32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0
32001 0 0