This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
void ans(string s) {
cout << s << endl;
}
ll q, now = 0;
int main(){
cin >> q;
while(q--) {
now++;
ll out;
cin >> out;
if (out != now)
{
ans("SALAH");
now = 0;
} else {
ans("BENAR");
}
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |