#include <iostream>
using namespace std;
int main() {
int decimal = 255;
————————
return 0;
}
#include <iostream>
using namespace std;
int main() {
int a = 0b1101;
int b = 0b1011;
cout << (a ^ b);
return 0;
}
#include <iostream>
using namespace std;
int main() {
int arr[] = {3, 7, 2, 9, 5};
int maxIndex = 0;
for (int i = 1; i < 5; i++) {
————————————
{
maxIndex = i;
}
}
cout << maxIndex;
return 0;
}
#include <iostream>
using namespace std;
int main() {
int arr[] = {1, 2, 3, 4, 5};
int left = 0, right = 4;
while (left < right) {
while (arr[left] % 2 == 1 && left < right) left++;
—————————————————————————————
if (left < right) {
swap(arr[left], arr[right]);
}
}
for (int i = 0; i < 5; i++) {
cout << arr[i] << " ";
}
return 0;
}
int main() {
string str = "HelloWorld";
___________________
cout << str;
return 0;
}
#include <iostream>
#include <string>
using namespace std;
int main() {
string str = "HelloC++";
_________________
_________________
return 0;
}
for (int i = 1; i <= n; i++) {
cin >> a;
__________________________
cnt++;
}
int main()
{
char x;
scanf("%c", &x);
int ASCII = (int)x;
cout << (x & 1 ? "YES" : "NO") << '\n';
return 0;
}
cin>>n;
cout<<((n%4==0&&n%100!=0)||(n%400==0))?1:0;
return 0;
long long n;
cin >> n;
while(n != 0) {
cout << n/2 << ' ' << n%2 << '\n';
n /= 2;
}