Skip to content

Commit

Permalink
Create 2041A-TheBentoBoxAdventure.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
DionysiosB committed Nov 27, 2024
1 parent 74de8a8 commit 63b71ff
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions 2041A-TheBentoBoxAdventure.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include <cstdio>

int main(){

bool v[6] = {0};
for(int p = 0; p < 4; p++){
int x; scanf("%d", &x);
v[x] = 1;
}

for(int p = 1; p <= 5; p++){if(!v[p]){printf("%d\n", p); break;}}

return 0;

}

0 comments on commit 63b71ff

Please sign in to comment.