Untitled

Anonymous
Plain Text
10/03/2025 9:54 PM
605 B
25
Indexable
Never
pal3 #4861

#include <iostream>

using namespace std;

int n,s,z,u;

int main()
{
    cin >> n;
    s=(n/100)%10;
    u=n%10;
    if  (s==u) {
        cout << "DA";
    }
    else {
        cout << "NU";
    }
    return 0;
}


 nrSumCifMax #3275 ?? (ma mai gandesc maine)

 #include <iostream>

using namespace std;

int ab,cd,ef;

int main()
{
    cin >> ab >> cd >> ef;
    a+b=x;
    c+d=y;
    e+f=z;
    if (x>y && x>z) {
        cout << x;
    }
    else if (y>x && y>z) {
        cout << y;
    }
    else {
        cout << z;
    }
    return 0;
}
Editor is loading...
Leave a Comment