网站首页 站内搜索

搜索结果

查询Tags标签: 数为,共有 22条记录
  • 7-7 韩信点兵 (10 分)

    在中国数学史上,广泛流传着一个“韩信点兵”的故事:韩信是汉高祖刘邦手下的大将,他英勇善战,智谋超群,为汉朝建立了卓越的功劳。据说韩信的数学水平也非常高超,他在点兵的时候,为了知道有多少兵,同时又能保住军事机密,便让士兵排队报数: 按从1至5报数,记下最末…

    2021/10/28 23:09:37 人评论 次浏览
  • #722 (Div. 1) B. Kavi on Pairing Duty(DP)

    题目描述Kavi has 2n points lying on the OX axis, i-th of which is located at x=i. Kavi considers all ways to split these 2n points into n pairs. Among those, he is interested in good pairings, which are defined as follows: Consider n segments with end…

    2021/10/26 23:40:00 人评论 次浏览
  • #722 (Div. 1) B. Kavi on Pairing Duty(DP)

    题目描述Kavi has 2n points lying on the OX axis, i-th of which is located at x=i. Kavi considers all ways to split these 2n points into n pairs. Among those, he is interested in good pairings, which are defined as follows: Consider n segments with end…

    2021/10/26 23:40:00 人评论 次浏览
  • 【洛谷P1080】[NOIP2012 提高组] 国王游戏

    问题描述 恰逢H国国庆,国王邀请n位大臣来玩一个有奖游戏。首先,他让每个大臣在左、右手上面分别写下一个整数,国王自己也在左、右手上各写一个整数。然后,让这n位大臣排成一排,国王站在队伍的最前面。排好队后,所有的大臣都会获得国王奖赏的若干金币,每位大臣获得的…

    2021/10/13 6:14:17 人评论 次浏览
  • 【洛谷P1080】[NOIP2012 提高组] 国王游戏

    问题描述 恰逢H国国庆,国王邀请n位大臣来玩一个有奖游戏。首先,他让每个大臣在左、右手上面分别写下一个整数,国王自己也在左、右手上各写一个整数。然后,让这n位大臣排成一排,国王站在队伍的最前面。排好队后,所有的大臣都会获得国王奖赏的若干金币,每位大臣获得的…

    2021/10/13 6:14:17 人评论 次浏览
  • Fibonacci数列 C++

    Fibonacci数列 前两个数为1,后面的数为前两数之和 :如数列1 1 3 5 8 13 21 //后面的数为前两数之和 #include<iostream> #include<iomanip> using namespace std; int main() {long int f1 = 1, f2 = 1;int i;for (i = 1; i <= 20; i++){cout << s…

    2021/7/25 14:06:10 人评论 次浏览
  • Fibonacci数列 C++

    Fibonacci数列 前两个数为1,后面的数为前两数之和 :如数列1 1 3 5 8 13 21 //后面的数为前两数之和 #include<iostream> #include<iomanip> using namespace std; int main() {long int f1 = 1, f2 = 1;int i;for (i = 1; i <= 20; i++){cout << s…

    2021/7/25 14:06:10 人评论 次浏览
共22记录«上一页12下一页»
扫一扫关注最新编程教程