From acff1ef358c82c1a1a3c0b758c31473041f6901e Mon Sep 17 00:00:00 2001 From: sukirt01 <54432666+sukirt01@users.noreply.github.com> Date: Thu, 10 Oct 2019 19:27:41 +0530 Subject: [PATCH] Update CNOTE.cpp --- CodeChef/CNOTE.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CodeChef/CNOTE.cpp b/CodeChef/CNOTE.cpp index 3468704..e9489e2 100644 --- a/CodeChef/CNOTE.cpp +++ b/CodeChef/CNOTE.cpp @@ -16,13 +16,13 @@ int main() { { cin>>p[i]>>c[i]; } - int f = 0; + int g = 0; for(int i = 0; i= (x-y) && c[i] <= k) - f++; + g++; } - if(f == 0) + if(g == 0) cout<<"UnluckyChef"<<"\n"; else cout<<"LuckyChef"<<"\n";