# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
956579 | 2024-04-02T07:40:58 Z | DeltaStruct | Laugh Analysis (IOI16_laugh) | C++17 | 0 ms | 348 KB |
#include <bits/stdc++.h> #include "laugh.h" using namespace std; int longest_laugh(string s){ int r = 0; for (int i(0),k(1);i < s.size();++i){ k = (s[i]=='a'||s[i]=='h'?k+1:0); r = max(r,k); } return r; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 348 KB | numbers differ - expected: '1', found: '2' |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 348 KB | numbers differ - expected: '1', found: '2' |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 348 KB | numbers differ - expected: '1', found: '2' |
2 | Halted | 0 ms | 0 KB | - |