Hãy nhập câu hỏi của bạn vào đây, nếu là tài khoản VIP, bạn sẽ được ưu tiên trả lời.
Bit
- Bit là viết tắt của Binary Digit (chữ số nhị phân).
- Mỗi bit chỉ có thể mang một trong hai giá trị: 0 hoặc 1.
- Các đơn vị lớn hơn được tạo thành từ nhiều bit, ví dụ:
- 1 byte = 8 bits
- 1 kilobyte (KB) = 1024 bytes, v.v.
1:
#include <bits/stdc++.h>
using namespace std;
long long a[100],i,n;
int main()
{
cin>>n;
for (i=1; i<=n; i++) cin>>a[i];
cout<<"Day ban dau la: "<<endl;
for (i=1;i<=n; i++) cout<<a[i]<<" ";
cout<<endl;
sort(a+1,a+n+1);
cout<<"Day tang dan la: "<<endl;
for (i=1; i<=n; i++) cout<<a[i]<<" ";
return 0;
}
uses crt;
var a,b:longint;
Begin
clrscr;
Writeln('Nhap a,b=');
Readln(a,b);
writeln('tich hai so la : a*b=',a*b);
writeln('thuong hai so la :a/b=',a/b);
Readln;
End.
#include <bits/stdc++.h>
using namespace std;
long long i,a,b;
int main()
{
cin>>a>>b;
for (i=1; i<=min(a,b); i++)
if ((a%i==0) and (b%i==0)) cout<<i<<" ";
return 0;
}
#include <bits/stdc++.h>
using namespace std;
long long a,b,bcnn;
int main()
{
cin>>a>>b;
if (a>b) swap(a,b);
bcnn=b;
while (bcnn%a!=0)
bcnn=bcnn+b;
cout<<bcnn;
return 0;
}
Câu 1.
int main() {
int cot, dong;
cin >> cot >> dong;
if ((cot + dong) % 2 == 0) cout << "NO";
else cout << "YES";
}
#include <bits/stdc++.h>
using namespace std;
string n;
int d;
int main()
{
cin>>n;
d=n.length();
cout<<d;
return 0;
}
Bạn tham khảo thử nhé
when flag clicked
ask (What is the value of a?) and wait
set [a v] to (answer)
ask (What is the value of b?) and wait
set [b v] to (answer)
set [ketqua1 v] to ((2 * (a)) - (b))
set [ketqua2 v] to ((2 * (a)) + (b))
say (ketqua1) & (ketqua2)