📄 f.cpp
字号:
#include <iostream>using namespace std;long long n;long long cx4(long long x){ return x*(x-1)*(x-2)*(x-3)/24;}int main(){ for(int te=1;cin>>n,n;++te) if(n&1)cout<<"Case "<<te<<": 0"<<endl; else { n=n+4>>1; cout<<"Case "<<te<<": "<<cx4(n)+cx4(n-1)<<endl; } return 0;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -