diff options
| author | Matsuko Sano <msano@c1r17s9.42tokyo.jp> | 2022-08-22 17:30:07 +0900 |
|---|---|---|
| committer | Matsuko Sano <msano@c1r17s9.42tokyo.jp> | 2022-08-22 17:30:07 +0900 |
| commit | be31e6b7731a2f3142fbf29472ae1d71f82765fb (patch) | |
| tree | 53e48351cdefed0a60072e7a805e8736add02786 /rush/max_search_3.c | |
| parent | 43cbb3f685d5895bb1877f683060d7d2958d5966 (diff) | |
Diffstat (limited to 'rush/max_search_3.c')
| -rw-r--r-- | rush/max_search_3.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/rush/max_search_3.c b/rush/max_search_3.c new file mode 100644 index 0000000..47ec2b9 --- /dev/null +++ b/rush/max_search_3.c @@ -0,0 +1,21 @@ +#include <unistd.h> +void max_search_3(int x[4], int left, int right) +{ + if (left - right == 0) + { + x[0] = 3; + x[3] = 3; + } + if (left == 2 && right == 3) + { + x[0] = 3; + x[2] = 3; + } + if (left == 3 && right == 2) + { + x[3] = 3; + x[1] = 3; + } + if + +}
\ No newline at end of file |
