Skip to content

Commit

Permalink
Add unfinished solution
Browse files Browse the repository at this point in the history
  • Loading branch information
deniscostadsc committed Sep 24, 2024
1 parent cc85089 commit 5286168
Show file tree
Hide file tree
Showing 5 changed files with 2,087 additions and 9 deletions.
28 changes: 28 additions & 0 deletions solutions/beecrowd/1129/1129.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#include <stdint.h>
#include <stdio.h>

int main() {
int16_t i, n, o[5], c, r;
char l[] = "ABCDE";

while (scanf("%d", &n) && n != 0) {
while (n--) {
scanf("%d %d %d %d %d", &o[0], &o[1], &o[2], &o[3], &o[4]);
c = 0;
for (i = 0; i <= 4; i++) {
if (o[i] <= 127) {
r = i;
c++;
}
}

if (c != 1) {
puts("*");
} else {
printf("%c\n", l[r]);
}
}
}

return 0;
}
Empty file added solutions/beecrowd/1129/WRONG
Empty file.
17 changes: 17 additions & 0 deletions solutions/beecrowd/1129/generate_in.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash

set -euo pipefail

echo "1024"
for i in 0 126 127 255; do
for j in 0 126 127 255; do
for x in 0 126 127 255; do
for y in 0 126 127 255; do
for z in 0 126 127 255; do
echo "${i} ${j} ${x} ${y} ${z}"
done
done
done
done
done
echo "0"
Loading

0 comments on commit 5286168

Please sign in to comment.