#include <iostream>
#include <string>
using namespace std;

void main()
{
string card="card(s)";
double num=2;
double res=0;
double end;
cin>>end;
int what=0;
while (res<=end)
{
res+=1/(num++);
what++;
}
if (end>0)
cout<<what<<" "<<card<<endl;
}

相关文章:

  • 2021-11-07
  • 2022-12-23
  • 2021-10-22
  • 2021-05-23
  • 2021-06-27
  • 2022-12-23
  • 2021-07-16
猜你喜欢
  • 2022-01-09
  • 2021-10-21
  • 2022-01-14
  • 2022-12-23
  • 2021-11-24
  • 2022-12-23
  • 2021-10-10
相关资源
相似解决方案