正文
增加 8 行删除 8 行
25 行未改动2627282930313233348 行未改动4344454647484950515253545556575859606162636465666768697071724 行未改动25 行未改动**代码:**```cpp//洛谷 P14054 [SDCPC 2019] Sekiro#include<bits/stdc++.h>using namespace std;//#define LOCAL//#define emdl '\n'8 行未改动#ifdef LOCALfreopen("in.txt","r",stdin);freopen("out.txt","w",stdout);#endifint t;cin>>t;while(t--){cin>>n>>k;//特判 n=0if(n==0){cout<<"0"<<emdl;continue;}//贪心if(k>50){cout<<"1"<<emdl;continue;}//暴力求出答案int x=n;for(int i=1;i<=k;i++){x=(x+1)/2;}cout<<x<<emdl;}return 0;4 行未改动25 行未改动2627282930313233348 行未改动4344454647484950515253545556575859606162636465666768697071724 行未改动25 行未改动**代码:**```cpp//洛谷 P14054 [SDCPC 2019] Sekiro#include<bits/stdc++.h>using namespace std;//#define LOCAL//#define emdl '\n'8 行未改动#ifdef LOCALfreopen("in.txt","r",stdin);freopen("out.txt","w",stdout);#endifint t;cin>>t;while(t--){cin>>n>>k;//特判 n=0if(n==0){cout<<"0"<<emdl;continue;}//贪心if(k>50){cout<<"1"<<emdl;continue;}//暴力求出答案int x=n;for(int i=1;i<=k;i++){x=(x+1)/2;}cout<<x<<emdl;}return 0;4 行未改动