24 lines
372 B
C
24 lines
372 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
int main(int argc, char **argv) {
|
|
|
|
char c;
|
|
int count = 0;
|
|
int firstSide = 0;
|
|
while ((c=getchar()) != '\n') {
|
|
if (c == '(') {
|
|
firstSide = count;
|
|
count = 0;
|
|
}
|
|
if (c == '|') {
|
|
count++;
|
|
}
|
|
}
|
|
if (count == firstSide) {
|
|
printf("correct\n");
|
|
} else {
|
|
printf("fix\n");
|
|
}
|
|
return 0;
|
|
} |