20 lines
257 B
C
20 lines
257 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
#include <kfifo.h>
|
|
|
|
int test01(int size) {
|
|
return ((size < 2) || (size & (size - 1))) ? -1 : size;
|
|
}
|
|
|
|
int work01() {
|
|
for (int i = 0; i < 18; i++) {
|
|
printf("%d:%d\n", i, test01(i));
|
|
}
|
|
}
|
|
|
|
int main()
|
|
{
|
|
|
|
return 0;
|
|
} |