From 423f2105aaa437ce2d0e1c3269335cb098f2ffd0 Mon Sep 17 00:00:00 2001 From: Kumar Shubham Date: Sat, 25 Apr 2020 14:44:27 +0530 Subject: [PATCH] Changed the if statement. Changed the n>=0 to n>=-9 because if the input is say, -6 then according to n>=0 it will print 0 which will be wrong and it should be -6 so the condition should be n>=-9. I submitted my answer and passed every test case with n>=-9. --- 313A - Ilya and Bank Account.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/313A - Ilya and Bank Account.cpp b/313A - Ilya and Bank Account.cpp index f731def..24b9998 100644 --- a/313A - Ilya and Bank Account.cpp +++ b/313A - Ilya and Bank Account.cpp @@ -7,7 +7,7 @@ int main() { int n; cin >> n; - if (n >= 0) + if (n >= -9) { cout << n << endl; }