你的QQ多少级了?

来源:互联网 发布:比较好的二手车软件 编辑:程序博客网 时间:2024/04/29 21:19

 

#include<iostream>
using namespace std;
int main()

   int n,t,r,y,x,i,s;
  while(cin>>n)
  
    if(n==0)break;
    i=0;
    while ((s=i*(i+4)) <= n)
  {
    i++;
  }
    r=i-1;
  t=r/16;
  y=r/4;
  x=r%4;
 cout<<r<<endl;
 cout<<t<<""<<y<<""<<x<<endl;
  
   }
}

0 0
原创粉丝点击