From a6629820370fb5fc77790d2ccc506cb165ebf1de Mon Sep 17 00:00:00 2001 From: ShazidMahsrafi Date: Sat, 17 Jun 2023 19:29:03 +0600 Subject: [PATCH] initial commit --- 122B Lucky Substring/122B.cpp | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 122B Lucky Substring/122B.cpp diff --git a/122B Lucky Substring/122B.cpp b/122B Lucky Substring/122B.cpp new file mode 100644 index 0000000..554b2c0 --- /dev/null +++ b/122B Lucky Substring/122B.cpp @@ -0,0 +1,30 @@ +#include +using namespace std; +using ll = long long; + +void solve() +{ + int c4=0,c7=0; + string s; + cin>>s; + for(int i=0; ic7) cout<<"4"<c4) cout<<"7"<> TC; + //cin.ignore(); + while (TC--) solve(); +} \ No newline at end of file