Clube dos Cinco
Problem LinkSolution by augusto — 100 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