# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
69682 | win11905 | Laugh Analysis (IOI16_laugh) | C++11 | 11 ms | 2692 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 "laugh.h"
#include <bits/stdc++.h>
using namespace std;
int mx, cnt;
int longest_laugh(string s) {
for(int i = 0; i < s.size(); ++i) {
if(i != 0) if(s[i] == s[i-1]) cnt = 0;
if(s[i] == 'h' || s[i] == 'a') cnt++;
else cnt = 0;
mx = max(mx, cnt);
}
return mx;
}
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... |