F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

��ŵ��IX

Time Limit: 3000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 3860    Accepted Submission(s): 2187


Problem Description
1,2,...,n��ʾn�����ӣ����ִ����Ӿʹ�n�����ӷ��ڵڣ��������ϣ����̲��ܷ���С���ϣ�
�ڵڣ��������ϵ�������a[1],a[2],...,a[n]. a[1]=n,a[2]=n-1,...,a[n]=1.��a[1]������
������ӣ���n�������ƶ����ڣ������ӣ�ÿ��ֻ���ƶ��������ӣ��Ҵ��̲��ܷ���С���ϣ�
�ʵ�m���ƶ�������һ������.
 

Input
ÿ��2������n (1 �� n �� 63) ,m�� 2^n-1.n=m=0�˳�
 

Output
�����m���ƶ������ӵĺ�����
 

Sample Input
63 1 63 2 0 0
 

Sample Output
1 2
 

Author
zhousc
 

Source
 

Statistic | Submit | Discuss | Note
Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-08-07 09:49:30, Gzip enabled