Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
20666 石利伟 印度国王的棋盘 C++ 解答错误 20 0 MS 264 KB 337 2021-06-19 17:14:48

Tests(2/10):


#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; }


测评信息: