提交时间:2021-06-19 17:14:48

运行 ID: 20666

#include<bits/stdc++.h> using namespace std; long long a,b,cou,d,ll,mm,aa,bb,cc; char lllll; int main(){ cin>>a>>lllll>>b; for(double i=a;i<=b;i++){ cou+=pow(2,(i-1)); } if(cou>=1000000){ ll=cou%1000; while(cou>=1000){ cou/=10; } cout<<cou<<","<<ll<<endl; } else{ cout<<cou<<endl; } return 0; }