#include int main() { int pocky = 0; int mouse = 0; // 値取得 scanf("%d %d", &pocky, &mouse); // 結果表示 if (pocky / 2 == pocky / mouse / 2 * mouse) printf("0"); else printf("%d", pocky / mouse / 2 * mouse); return 0; }