Skip to content

Commit cc4facc

Browse files
committed
Add problem from poj.org #math #combinatoric
1 parent 15753eb commit cc4facc

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

poj/3219.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// http://poj.org/problem?id=3219
2+
#include<stdio.h>
3+
4+
int main () {
5+
int n, k;
6+
while (scanf("%d%d", &n, &k) != EOF) {
7+
printf("%d\n", !(k & (n - k)));
8+
}
9+
10+
return 0;
11+
}

0 commit comments

Comments
 (0)