第五个测试点挂了o(╥﹏╥)o
查看原帖
第五个测试点挂了o(╥﹏╥)o
1059277
2013wjy楼主2023/8/24 11:51
#include<bits/stdc++.h>
using namespace std;

int main(){
	long long n,cnt=0;
	cin>>n;
	int t=n;
	while(true){
		cnt++;
		cout<<t<<' ';
		t/=2;
		if(t==1){
			cout<<1;
			break;
		}
	}
	return 0;
}
2023/8/24 11:51
加载中...