#BZOJ2054. 疯狂的馒头
疯狂的馒头
题目描述

输入格式
第一行四个正整数N,M,p,q
输出格式
一共输出N行,第i行表示第i个馒头的最终颜色(如果最终颜色是白色就输出0)。
4 3 2 4
2
2
3
0
数据范围与约定


第一行四个正整数N,M,p,q
一共输出N行,第i行表示第i个馒头的最终颜色(如果最终颜色是白色就输出0)。
4 3 2 4
2
2
3
0

By signing up a 算道OJ universal account, you can submit code and join discussions in all online judging services provided by us.