{"trustable":false,"sections":[{"title":"题目大意","value":{"format":"MD","content":"有$n$张牌,从上往下编号为$1\\to n$。当牌堆至少有两张牌时做以下的操作:扔掉堆顶的牌,随后将之后堆顶的牌放到堆底的下面。"}},{"title":"输入格式","value":{"format":"MD","content":"不断的输入整数$n$,直到它为$0$。"}},{"title":"输出格式","value":{"format":"MD","content":"输出每一个$n$所对应的每次扔掉的牌以及最后剩下的牌。详见输出样例。"}},{"title":"样例输入","value":{"format":"MD","content":"```plaintext\n7\n19\n10\n6\n0\n```"}},{"title":"样例输出","value":{"format":"MD","content":"```plaintext\nDiscarded cards: 1, 3, 5, 7, 4, 2\nRemaining card: 6\nDiscarded cards: 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 4, 8, 12, 16, 2, 10, 18, 14\nRemaining card: 6\nDiscarded cards: 1, 3, 5, 7, 9, 2, 6, 10, 8\nRemaining card: 4\nDiscarded cards: 1, 3, 5, 2, 6\nRemaining card: 4\n```"}}]}