#Include Iostream
#Include Iostream
#Include Iostream
#include <cstdio>
#include <iomanip>
int main() {
int a;
long b;
char c;
float d;
double e;
std::cin >> a;
std::cin >> b;
std::cin >> c;
std::cin >> d;
std::cin >> e;
return 0;
}
//////////////////////////
#include <iostream>
#include <iomanip> // for setprecision
int main() {
int integer;
long longInteger;
char character;
float floatNumber;
double doubleNumber;
// Input
cin >> integer >> longInteger >> character >> floatNumber >> doubleNumber;
// Output
cout << integer << endl; // Print int
cout << longInteger << endl; // Print long
cout << character << endl; // Print char
cout << fixed << setprecision(3) << floatNumber << endl; // Print float with
3 decimal places
cout << fixed << setprecision(9) << doubleNumber << endl; // Print double
with 9 decimal places
return 0;
}
/////////////////////////
#include <iostream>
#include <cstdio>
// Input
scanf("%d %ld %c %f %lf", &integer, &longInteger, &character, &floatNumber,
&doubleNumber);
// Output
printf("%d\n", integer); // Print int
printf("%ld\n", longInteger); // Print long
printf("%c\n", character); // Print char
printf("%.3f\n", floatNumber); // Print float with 3 decimal places
printf("%.9lf\n", doubleNumber); // Print double with 9 decimal places
return 0;
}
///////////////////
#include <iostream>
int main() {
int no1;
int no2;
std::cin >> no1;
std::cin >> no2;
if (no1 == 1) {
std::cout << "one" << '\n';
}
else if (no1 == 2) {
std::cout << "two" << '\n';
}
else if (no1 == 3) {
std::cout << "three" << '\n';
}
else if (no1 == 4) {
std::cout << "four" << '\n';
}
else if (no1 == 5) {
std::cout << "five" << '\n';
}
else if (no1 == 6) {
std::cout << "six" << '\n';
}
else if (no1 == 7) {
std::cout << "seven" << '\n';
}
else if (no1 == 8) {
std::cout << "eight" << '\n';
}
else if (no1 == 9) {
std::cout << "nine" << '\n';
}
else {
std::cout << "nine" << '\n';
}
if (no2 == 1) {
std::cout << "one" << '\n';
}
else if (no2 == 2) {
std::cout << "two" << '\n';
}
else if (no2 == 3) {
std::cout << "three" << '\n';
}
else if (no2 == 4) {
std::cout << "four" << '\n';
}
else if (no2 == 5) {
std::cout << "five" << '\n';
}
else if (no2 == 6) {
std::cout << "six" << '\n';
}
else if (no2 == 7) {
std::cout << "seven" << '\n';
}
else if (no2 == 8) {
std::cout << "eight" << '\n';
}
else if (no2 == 9) {
std::cout << "nine" << '\n';
}
else {
std::cout << "nine" << '\n';
}
if (no1 == 2 || no1 == 4 || no1 == 6 || no1 == 8 ) {
std::cout << "even" << '\n';
}
else if (no1 == 1 || no1 == 3 || no1 == 5 || no1 == 7 || no1 == 9) {
std::cout << "odd" << '\n';
}
else {
std::cout << "odd" << '\n';
}
if (no2 == 2 || no2 == 4 || no2 == 6 || no2 == 8 ) {
std::cout << "even" << '\n';
}
else if (no2 == 1 || no2 == 3 || no2 == 5 || no2 == 7 || no2 == 9) {
std::cout << "odd" << '\n';
}
else {
std::cout << "odd" << '\n';
}
return 0;
}
//////////////////////////////
#include <iostream>
#include <cstdio>
using namespace std;
if (a>b&&a>c&&a>d) {
ans = a;
}
else if (b>a&&b>c&&b>d) {
ans = b;
}
else if (c>a&&c>b&&c>d) {
ans = c;
}
else if (d>a&&d>b&&d>c) {
ans = d;
}
else {
cout<<"0000"<<'\n';
}
return ans;
int main() {
int a, b, c, d;
scanf("%d %d %d %d", &a, &b, &c, &d);
int ans = max_of_four(a, b, c, d);
printf("%d", ans);
return 0;
}
//////////////////////////////