#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 |
1 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |