# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
447369 | 2021-07-26T07:49:21 Z | osmanallazov | Palindromic Partitions (CEOI17_palindromic) | C++14 | 0 ms | 204 KB |
#include <bits/stdc++.h> using namespace std; int main() { int t,say=0; cin>>t; string s,x,y; while(t--){ cin>>s; for(int i=0;i<s.length()/2;i++){ x=x+s[i]; y=s[s.length()-1-i]+y; if(x==y){ say++; say++; x.clear(); y.clear(); } } if(s.length()%2==1){ say++; } cout<<say; say=0; } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 204 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 204 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 204 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 204 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |