当前位置:网站首页>uva12326
uva12326
2022-08-01 05:13:00 【小刀刺大熊】
#include <iostream>
#include <istream>
#include <sstream>
#include <vector>
#include <stack>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <queue>
#include <cstring>
#include <unordered_map>
#include <unordered_set>
#include <algorithm>
#include <numeric>
#include <chrono>
#include <ctime>
#include <cmath>
#include <cctype>
#include <string>
#include <cstdio>
#include <iomanip>
#include <thread>
#include <mutex>
#include <condition_variable>
#include <functional>
#include <iterator>
using namespace std;
int a[20] = {
0,1,1,1,4,6,19,43,120,307,866,2336,6588,18373,52119,147700,422016 };
int main()
{
int n;
cin >> n;
for (int i = 1; i <= n; i++)
{
int x;
cin >> x;
cout << "Case #" << i << ": " << a[x] << endl;
}
return 0;
}
边栏推荐
- 类神经网络训练不起来怎么办
- Selenium: Dropdown Box Actions
- LeetCode 387. 字符串中的第一个唯一字符
- Selenium:下拉框操作
- 报错:AttributeError: module ‘matplotlib’ has no attribute ‘figure’
- NDK does not contain any platforms问题解决
- Seleniu:元素常用操作
- 请求/响应拦截器写法
- 华为Android开发面试后得出的面试秘诀
- Excel record of integer programming optimization model to solve the problem
猜你喜欢
[MySQL] 多表查询
移动应用恶意攻击激增500% 三六零天御为APP免费构建安全屏障
typescript23-tuple
备战金九银十,如何顺利通过互联网大厂Android的笔面试?
状态压缩dp
pytroch、tensorflow对比学习—专栏介绍
Malicious attacks on mobile applications surge by 500%
2022年湖南工学院ACM集训第六次周测题解
对话MySQL之父:一个优秀程序员可抵5个普通程序员
The sword refers to Offer 68 - I. Nearest Common Ancestor of Binary Search Trees
随机推荐
状态压缩dp
DL-31/6电流继电器
pytorch、tensorflow对比学习—功能组件(优化器、评估指标、Module管理)
UE4 从鼠标位置射出射线检测
pytorch、tensorflow对比学习—功能组件(激活函数、模型层、损失函数)
LeetCode 387. 字符串中的第一个唯一字符
state compressed dp
(2022牛客多校四)N-Particle Arts(思维)
[target detection] YOLOv7 theoretical introduction + practical test
微信小程序接口调用凭证(获取token)auth.getAccessToken接口开发
七、MFC序列化机制和序列化类对象
vim配置+ctag像source insight一样方便阅读代码
Risk strategy important steps of tuning method
typescript23-tuple
leetcode125 验证回文串
Selenium: upload and download files
可持久化线段树
API Design Notes: The pimpl trick
关于给Qt做一个软件初始化的进度条
挑战52天背完小猪佩奇(第01天)