# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
499478 | Alisaf9 | Kamenčići (COCI21_kamencici) | C++14 | 0 ms | 204 KiB |
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;
int main()
{
int n,k,w=0,q=0,m=0,f=0;
string s;
cin>>n>>k;
cin>>s;
for(int i=0;i<n;i++)
{
if(s[i]=='P')
{
q++;
}
}
for(int i=n-1;i>=0;i--)
{
if(s[i]=='P')
{
f++;
}
}
m=f;
if(m%2==1)
cout<<"DA";
else
cout<<"NE";
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |