#include <bits/stdc++.h>
using namespace std;
int main(){
int n,k;
string s;
cin>>n>>k;
cin>>s;
int an=0,br=0;
int x=n;
while(x--){
for(int i=0;i<=n;i++){
for(int j=n-1;j<=0;j--){
if(s[i]=='c'&&s[j]=='c'){
if(x%2==1){
an++;
}
else{
br++;
}
}
}
}
if(an>=k){
cout<<"NE";
}
else{
if(br>=k){
cout<<"DA";
}
}
}
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
204 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
204 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
204 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |