#include <iostream>
#include <algorithm> // для std::min
using namespace std;
int main()
{
int a, b, c, d, m, n, s;
cin >> a >> b >> c >> d;
if (a < b) {
m = a - d;
n = b - c;
s = min({c, d, m, n}); // использование std::min с initializer_list
} else {
m = a - c;
n = b - d;
s = min({c, d, m, n}); // использование std::min с initializer_list
}
cout << s;
return 0;
}
import flet as ft
from signin_form import *
from signup_form import *
from users_db import *
from chat_message import *
from data import isweb
print('Flipy Started')
def main(page: ft.Page):
page.title = "чат"
page.vertical_alignment = ft.MainAxisAlignment.CENTER
page.horizontal_alignment = ft.CrossAxisAlignment.CENTER
# *************** Functions *************
def dropdown_changed(e):
new_message.value = new_message.value + emoji_list.value
page.update()
def close_banner(e):
page.banner.open = False
page.update()
def open_dlg():
page.dialog = dlg
dlg.open = True
page.update()
def close_dlg(e):
dlg.open = False
page.route = "/"
page.update()
#include <iostream>
#include <algorithm>
using namespace std;
int calculateMin(int a, int b, int c, int d) {
int m = a - d;
int n = b - c;
return min({c, d, m, n});
}
int main()
{
int a, b, c, d;
cout << "Введите четыре числа (a, b, c, d): ";
cin >> a >> b >> c >> d;
int s = calculateMin(a, b, c, d);
cout << "Минимальное значение: " << s << endl;
return 0;
}
using namespace std;
int main()
{
int a, b, c,d,m,n,s;
cin >> a >> b >> c>>d;
if (a<b) {
m=a-d;
n=b-c;
s=min<unsigned long>(c,d,m,n);
} else {
m=a-c;
n=b-d;
s=min(c,d,m,n);
}
cout<<s;
return 0;
}