From 935786887e0ac9bdbcfdb127bb445674f9498bcf Mon Sep 17 00:00:00 2001 From: ShazidMahsrafi Date: Tue, 19 Dec 2023 15:49:12 +0600 Subject: [PATCH] updated logic --- Codes/1913A Rating Increase/1913A.cpp | 35 +++++++++------------------ 1 file changed, 11 insertions(+), 24 deletions(-) diff --git a/Codes/1913A Rating Increase/1913A.cpp b/Codes/1913A Rating Increase/1913A.cpp index 1a01cc1..cecc1df 100644 --- a/Codes/1913A Rating Increase/1913A.cpp +++ b/Codes/1913A Rating Increase/1913A.cpp @@ -59,35 +59,22 @@ template void _print(unordered_map v) {cerr << "[ "; f void solve() { - string s,pre,post; + string s; cin>>s; - int p=0,q=0; - for(int i=0; i=b) - cout<<-1<