Untitled

 avatar
unknown
plain_text
a year ago
1.6 kB
2
Indexable
//задача для среднячков номер 1 - 4.
#include <iostream>
using namespace std;
int main()
{
    /*
    int b, i;
    cin >> b;
    cout << "\n";
    i = 0;
    while (i < b){
        i++;
        int g = i;
        while (g > 0){
            g--;
            cout << "@ ";
        }
        cout << "\n";
    }
    return 0;
    */
    /*
    int a, b;
    char c;
    bool color = 0;
    cin >> a >> b;
    int y = b;
    while (a > 0){
        a--;
        while (y > 0){
            y--;
            cin >> c;
            if (c == 'G' || c == 'B' || c == 'W'){
            }
            else 
            {
               color = 1;
            }
        }
        y = b;
        cout << "\n";
    }
    if (color == 0){
        cout << "#Black&White";
    }
    else{
        cout << "#Color";
    }
    return 0;
    */
    /*
    int s = 0;
    int a;
    cin >> a;
    int i = 0;
    while (i < a){
        i++;
        if (i % 2 == 1){
            s -= i;
        }
        else{
            s += i;
        }
    }
    cout << s;
    return 0;
    */
    /*
    int l1;
    int l2;
    int l3;
    int n;
    cin >> n;
    while (n > 0)
    {
        n--;
        cin >> l1 >> l2 >> l3;
        if (l1 == l2 + l3 || l2 == l1 + l3 || l3 == l1 + l2) {
            cout << "yes";
        }
        else if ((l1 % 2 == 0 && l2 == l3) || (l2 % 2 == 0 && l1 == l3) || (l3 % 2 == 0 && l1 == l2)) {
            cout << "yes";
        }
        else {
            cout << "no";
        }
    }
    return 0;
    */
}
Leave a Comment