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
有关系。
查看全文
相关阅读:
telnet退出
Eclipse srever起来时,时间超过45s。
maven报错 Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:3.5.0 from
需求讨论
PyTorch学习笔记之计算图
PyTorch学习笔记之CBOW模型实践
PyTorch学习笔记之n-gram模型实现
PyTorch学习笔记之初识word_embedding
7月3日-9日_周报
python学习笔记之heapq内置模块
原文地址:https://www.cnblogs.com/jjtx/p/2533475.html
最新文章
Maven打包问题
web开发之Cookie使用
Struts2之标签使用
Struts2之OGNL表达式
#define 和typedef
c++ cout、<< 、cin、>> 、endl 详解
c简单的单向链表
堆操作,malloc
(待写)五大常用算法:分治、动态规划、贪心、回溯和分支界定
c语言:简单排序:冒泡排序法、选择排序法、插入排序法(待写)
热门文章
学习c++需要知道
c需要注意的细节
c语言文件操作
简单的学生成绩管理系统(待优化)
String StrigBuffer StringBuilder 浅解
jedis在线文档网址
linux部署j2eeweb工程涉及到的指令
linux文件操作命令
linux上抓包
查看自己电脑外网IP
Copyright © 2011-2022 走看看