Bottle Opening
Question
Solution
Idea
Code
https://github.com/mendax1234/Coding-Problems/blob/main/kattis/bottleopening/bottleopening.c
Last updated
Last updated
#include <stdio.h>
int main()
{
int n, k;
scanf("%d \n %d", &n, &k);
if (k >= n)
{
printf("impossible\n");
}
else
{
for (int i = 1; i <= k; i += 1)
{
printf("open %d using %d\n", i, i + 1);
}
}
}