⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 p2001_1.pas

📁 noip1998-2004普及
💻 PAS
字号:
program p2001_1(Input,output);
const maxn=10000;		
var I,j,n:Integer;		
    f:array[1..maxn] of longInt;		
begIn		
    assign(input,'count.in');
    reset(input);
    readln(n);
    close(input);		
    f[1]:=1;		
    for I:=2 to n dIv 2 do begIn		
        f[I]:=1;		
        for j:=1 to I dIv 2 do		
           f[I]:=f[I]+f[j];		
    end;		
    f[n]:=1;		
    for I:=1 to n dIv 2 do f[n]:=f[n]+f[I];
    assign(output,'count.out');
    rewrite(output);		
    wrIteln(f[n]);
    close(output);		
end.		

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -