当前位置:网站首页>uva12326
uva12326
2022-08-01 05:20:00 【Knife stabs the bear】
oeis(Integer Sequence Database)
#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;
}
边栏推荐
- Pyspark Machine Learning: Vectors and Common Operations
- NDK does not contain any platforms问题解决
- A,H,K,N
- 图片更新之后Glide加载依旧是原来的图片问题
- PAT class B 1001 (3n+1) conjecture
- WebSocket实现聊天功能
- Jupyter shortcuts
- Swastika line-by-line parsing and realization of the Transformer, and German translation practice (a)
- leetcode125 验证回文串
- pytroch、tensorflow对比学习—使用GPU训练模型
猜你喜欢
随机推荐
2022.7.27好题选讲
LeetCode 387. 字符串中的第一个唯一字符
可视化全链路日志追踪
Selenium:鼠标、键盘事件
The sword refers to Offer 68 - I. Nearest Common Ancestor of Binary Search Trees
Causes and solutions of lock table
剑指 Offer 68 - II. 二叉树的最近公共祖先
uva12326
混合型界面:对话式UI的未来
Selenium: element judgment
Speed up your programs with bitwise operations
Error: AttributeError: module 'matplotlib' has no attribute 'figure'
图片更新之后Glide加载依旧是原来的图片问题
(Codeforce 757)E. Bash Plays with Functions(积性函数)
Code Interview Guide for Programmers CD15 Generating an Array of Windowed Maximums
Lawyer Interpretation | Guns or Roses?Talking about Metaverse Interoperability from the Battle of Big Manufacturers
Selenium: Manipulating Cookies
力扣(LeetCode)212. 单词搜索 II(2022.07.31)
I met a shell script
NDK does not contain any platforms问题解决









