早教吧作业答案频道 -->其他-->
有关pascal的几道题http://10.12.10.10:9015/JudgeOnline/showproblem?problem_id=1225http://10.12.10.10:9015/JudgeOnline/showproblem?problem_id=1116http://10.12.10.10:9015/JudgeOnline/showproblem?problem_id=1058抱歉,发成校内网了网址是htt
题目详情
有关pascal的几道题
http://10.12.10.10:9015/JudgeOnline/showproblem?problem_id=1225
http://10.12.10.10:9015/JudgeOnline/showproblem?problem_id=1116
http://10.12.10.10:9015/JudgeOnline/showproblem?problem_id=1058
抱歉,发成校内网了
网址是
http://218.5.5.242:9015/JudgeOnline/showproblem?problem_id=1116
http://218.5.5.242:9015/JudgeOnline/showproblem?problem_id=1058
http://10.12.10.10:9015/JudgeOnline/showproblem?problem_id=1225
http://10.12.10.10:9015/JudgeOnline/showproblem?problem_id=1116
http://10.12.10.10:9015/JudgeOnline/showproblem?problem_id=1058
抱歉,发成校内网了
网址是
http://218.5.5.242:9015/JudgeOnline/showproblem?problem_id=1116
http://218.5.5.242:9015/JudgeOnline/showproblem?problem_id=1058
▼优质解答
答案和解析
1、
var
i,sum,n:longint;
begin
readln(n);
sum:=1;
for i:=1 to n do
sum:=sum*i;
writeln(sum);
end.
2、
var
f:array[1..10000] of boolean;
i,n,sum:longint;
begin
readln(n);
fillchar(f,sizeof(f),true);
for i:=2 to trunc(sqrt(n)) do
for j:=2 to n div i do
f[i*j]:=false;
sum:=0;
for i:=1 to n do
if f[i] then inc(sum,f[i]);
writeln(sum);
end.
时间匆忙,没有编译,自己看看吧
var
i,sum,n:longint;
begin
readln(n);
sum:=1;
for i:=1 to n do
sum:=sum*i;
writeln(sum);
end.
2、
var
f:array[1..10000] of boolean;
i,n,sum:longint;
begin
readln(n);
fillchar(f,sizeof(f),true);
for i:=2 to trunc(sqrt(n)) do
for j:=2 to n div i do
f[i*j]:=false;
sum:=0;
for i:=1 to n do
if f[i] then inc(sum,f[i]);
writeln(sum);
end.
时间匆忙,没有编译,自己看看吧
看了 有关pascal的几道题ht...的网友还看了以下:
已知字母组合成英语单词1、e e t t i n h r 2、e e r a t w h 3、o 2020-05-14 …
一道高中函数题,有一定难度设t是三次多项式f(x)=x^3-3x+10的一个根,且a=(t^2+t 2020-05-20 …
二元函数积分的应用题一个气球的体积被定义为V=(e^-h)/(1+t^2),h(t)>0表示在t时 2020-06-03 …
变限积分[a,b]上的积分∫[f(x+h)-f(x)]dx令x+h=t,那原式=∫[a+h,b+h 2020-07-11 …
我发现傅里叶变换的巨大错误!先看两条结论:1.x(t)*h(t)的傅里叶级数系数为T·a(k)·b 2020-07-13 …
数学课本上讲lim△t→0h(2+△t)-h(2)/△t=-13.1,表示当t=2,△t趋近于0时 2020-07-21 …
推断题:现有如下反应(反应条件均不给),推断物质⑴A→B+C+D⑵C+E→C+F+D⑶D+G→H⑷ 2020-07-30 …
谁会用下列字母组成三个英语单词???g,a,l,o,ts,t,o,a,o,ha,s,f,t,ks,h 2020-11-01 …
请问怎么弄数学建模的灵敏度分析呢,下面这个程序要怎么改正?ft=@(h)((0.16-180)-(( 2020-11-08 …
如图所示,小球从一个固定的光滑斜槽轨道顶端无初速开始下滑,用v、t和h分别表示小球沿轨道下滑的速度、 2020-12-09 …