zoukankan
html css js c++ java
Sudan Function
维基百科介绍:
http://en.wikipedia.org/wiki/Sudan_function
n=1时的实现:
#include <iostream> using namespace std; int Sudan(int x, int y) { return (2 + x) * (1 << y) - y - 2; // (2^(y + 1) - y - 2) + (x * 2^y) } int main(void) { int x; int y; while(cin >> x >> y) cout << Sudan(x, y) << endl; return 0; }
与
Ackermann Function
有关系。
查看全文
相关阅读:
List(双向链表)
Queue(队列)
Queue(队列)
Stack(栈)
Stack(栈)
Vector(容器)
gitlab代码库
Jenkins自动化部署平台
Maven私服仓库
VM架构设计文档初稿v0.01
原文地址:https://www.cnblogs.com/jjtx/p/2533475.html
最新文章
【VSTS 日志 15/11/18】 – 插件应用市场,RM,包管理器等
Linux下jetty报java.lang.OutOfMemoryError: PermGen space及Jetty内存配置调优解决方案
从技术经理的角度算一算,如何可以多快好省的做个app
Win7 Eclipse Hadoop2.4插件配置
OpenCV计算物体的重心坐标(2值图像)
Linux:ssh_config快速访问服务器
最短路算法(小小总结一下)
hdu_2519新生晚会(DP)
测试代码的运行时间(经典加总结)
The Evolution of a Programmer
热门文章
如何求卡特兰数——代码如下
Hdu_4165
hdu2534_____Score
HLG___能量项链
组合数末尾的零
HDU-3046 Pleasant sheep and big big wolf
deque(双端队列)
Map(关联式容器)
Map(关联式容器)
List(双向链表)
Copyright © 2011-2022 走看看