General
 
 
# Author Problem Lang Verdict Time Memory Sent Judged  
144584864 Practice:
Igorfardoc
1632A - 17 C++20 (GCC 11-64) Accepted 0 ms 0 KB 2022-01-30 20:16:38 2022-01-30 20:16:52
→ Source
#include<bits/stdc++.h>
using namespace std;
 
 
int main() {
    int t;
    cin >> t;
    while(t--) {
        int n;
        cin >> n;
        string s;
        cin >> s;
        if(n > 2 || s == "11" || s == "00") {
            cout << "NO\n";
        } else {
            cout << "YES\n";
        }
    }
}
?
Time: ? ms, memory: ? KB
Verdict: ?
Input
?
Participant's output
?
Jury's answer
?
Checker comment
?
Diagnostics
?
Click to see test details