摘要:
这道题就是经典的条件分支的题 https://www.luogu.org/problemnew/show/P1085 code: 阅读全文
posted @ 2018-09-11 20:25
yi_heng
阅读(416)
评论(0)
推荐(0)
摘要:
这道题其实就是编程最基础的逻辑,没什么好讲的输入,输出就完了,非常简单! code: 阅读全文
posted @ 2018-09-11 19:49
yi_heng
阅读(465)
评论(0)
推荐(0)
摘要:
#include using namespace std; int main(){ long k,i; cin >> k; double s=0.0; for (i=1;s<=k;i++) s=s+1.0/i; cout << i-1; return 0; } 阅读全文
posted @ 2018-09-11 19:46
yi_heng
阅读(312)
评论(0)
推荐(0)