Clube dos Cinco

Problem Link

Solution by augusto100 pts

Code / Notes

#include <bits/stdc++.h>
using namespace std;


int main() {

	int N; 
    cin >> N;
    int a,b,c,d,e,f,g;
    cin >> a >> b >> c >> d >> e >> f >> g ;

    int x = N - g - (a + b + c) + (d + e + f);
    if (x != 0) {
         cout << "S"<< endl;
    }else{
        cout << "N" << endl;
    }
}

Last updated 1 week, 3 days ago


« Back to problem