DOCSTRANGE @ 2019-10-19 16:16:05
int main() { float Sn=0,i=1; int K; scanf("%d",&K); do{ Sn=Sn+1/i; i=i+1; }while(Sn<K); printf("%.0f\n",i); return 0; }
by sel_fish @ 2019-10-19 16:18:09
Markdown炸了
by DOCSTRANGE @ 2019-10-19 16:21:49
@sel_fish 这是啥。。。萌新不懂。。。
by Atmizz @ 2019-10-19 17:00:38
include <stdio.h>
include <stdlib.h>
int main() {
float Sn=0,i=1;
int K;
scanf("%d",&K);
do{
Sn=Sn+1/i;
i=i+1;
}while(Sn<K);
printf("%.0f\n",i);
return 0;
}