Clube dos Cinco

Problem Link

Solution by Mr.Olimpia100 pts

Code / Notes

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

/*int dig(int N) {
    int ans = 1;
    while (N > 10) {
        N /= 10;
        ans++;
    }
    return ans;
}*/
int main() {
   int n, a, b, c, d, e, f, g;
   cin >> n >> a >> b >> c >> d >> e >> f >> g;
   if(a+b+c+g-d-e-f==n){
    cout << "N";
   }
   else{
    cout << "S";
   }
}

Last updated 1 week, 3 days ago


« Back to problem