From aa1c604b0db2c5ab94afd4db25d34dd6445f422c Mon Sep 17 00:00:00 2001 From: Jabir Ahmad Ryem <167877253+thisisryem@users.noreply.github.com> Date: Sat, 8 Nov 2025 13:15:37 +0600 Subject: [PATCH 1/2] Refactor queue_at_the_school.cpp for clarity --- queue_at_the_school.cpp | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/queue_at_the_school.cpp b/queue_at_the_school.cpp index 78583d4..3bb2601 100644 --- a/queue_at_the_school.cpp +++ b/queue_at_the_school.cpp @@ -1,16 +1,23 @@ -#include - +#include using namespace std; -int main(){ - int n, t; - cin>>n>>t; - +int main() { + int n,t; + cin >> n >> t; string s; - cin>>s; - - for(){ - + cin >> s; + + for(int time=0; time Date: Sat, 8 Nov 2025 13:17:19 +0600 Subject: [PATCH 2/2] Fixing the solution The previous code was incomplete. --- queue_at_the_school.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/queue_at_the_school.cpp b/queue_at_the_school.cpp index 3bb2601..f3b3ea1 100644 --- a/queue_at_the_school.cpp +++ b/queue_at_the_school.cpp @@ -7,7 +7,7 @@ int main() { string s; cin >> s; - for(int time=0; time