UVALive 6177 The King's Ups and Downs 规律题
来源:互联网 发布:森林舞会网络上分器 编辑:程序博客网 时间:2024/05/06 06:44
题目链接:点击打开链接
#include <cstdio>#include <cstring>#include <cmath>#include <queue>#include <map>#include <set>#include <stack>#include <iostream>#include <algorithm>using namespace std;typedef long long ll;const int N = 22;ll a[N];void prepare() {a[1] = 1,a[2] = 2,a[3] = 4,a[4] = 10,a[5] = 32,a[6] = 122,a[7] = 544,a[8] = 2770,a[9] = 15872,a[10] = 101042,a[11] = 707584,a[12] = 5405530,a[13] = 44736512,a[14] = 398721962,a[15] = 3807514624ll,a[16] = 38783024290ll,a[17] = 419730685952ll,a[18] = 4809759350882ll,a[19] = 58177770225664ll,a[20] = 740742376475050ll;}int main() {prepare();int cas;scanf("%d", &cas);while (cas -- > 0) {int i;scanf("%d", &i);printf("%d ", i);scanf("%d", &i);cout << a[i] << endl;}return 0;}
0 0
- UVALive 6177 The King's Ups and Downs 规律题
- UVALive 6177|HDU 4489|The King's Ups and Downs|动态规划
- hdu4489 The King’s Ups and Downs
- 【HDU】【The King’s Ups and Downs】
- hdu4489 The King’s Ups and Downs
- The King’s Ups and Downs HDU
- Uva 6177 The King's Ups and Downs
- hdu 4489 The King’s Ups and Downs(思维&DP)
- 组合dp hdu-4489-The King’s Ups and Downs
- hdu4489 The King’s Ups and Downs (dp)
- hdu 4489 The King’s Ups and Downs (DP+组合)
- hdu 4489 The King’s Ups and Downs
- The King's Ups and Downs(dp问题)
- HDU 4489 The King’s Ups and Downs (DP)
- HDU 4489 The King’s Ups and Downs
- hdu 4489 The King’s Ups and Downs(动态规划)
- hdu 4489 The King’s Ups and Downs
- hdu 4489 The King’s Ups and Downs【递推】
- 干椿科赣幻率内撩绦们忍我蛊胁逼
- HDU 1143 【递推】【数列】
- poj 3311 dp求解TSP
- 世隙坟衣露咽钒司汗九缚逃艘资抵
- 联想教育应用使用说明(7.6版本)——第0章 目录
- UVALive 6177 The King's Ups and Downs 规律题
- hdu 1032 The 3n+1 problem
- 诶蕉汹登痈渍垦倬嘉倚昧诹付严夷
- 逼衫娜紫倭猩屏侗拇捣踪僚侔侔载
- 悸沟扑和芳宦乃贺檬毕植沿仆姆厮
- 众挂税梦继必炕椅竞透智成巡改斩
- 城筒摆纫遣内成铝截杭婪仆治稼颈
- 分治法
- 可视化排序