271 条题解
-
0Mr.k LV 3 @ 2008-12-03 13:37:40
var
k,s:longint;
l:real;begin
readln(k);
s:=0;
l:=0;
while l -
02008-11-29 20:43:32@
var n,k,i:longint;t:real;
Begin
readln(k);
t:=0;
i:=0;
while t -
02008-11-10 17:29:05@
program P1127;
{$n+}
var
k,n:longint;
s:extended;
begin
readln(k);
s:=1; n:=1;
while s -
02008-11-08 18:22:59@
var
i,j,k,n:longint;
m:real;
begin
read(k);
m:=0;
i:=1;
repeat
m:=m+1/i;
if m>k
then begin
write(i);
halt;
end;
inc(i);
until false;
end.我无语了
这通过率只有52%?? -
02008-11-08 10:52:16@
这水题还是题吗?2分钟AC 阿东VS燕麦
var
k,n:longint;
sn:real;
begin
readln(k);
repeat
inc(n);
sn:=sn+1/n;
until sn>k;
writeln(n);
readln;
end. -
02008-11-07 13:18:32@
编译通过...
├ 测试数据 01:答案正确... 0ms
├ 测试数据 02:答案正确... 0ms
├ 测试数据 03:答案正确... 0ms
├ 测试数据 04:答案正确... 0ms
├ 测试数据 05:答案正确... 0ms
---|---|---|---|---|---|---|---|-
Accepted 有效得分:100 有效耗时:0msprogram p1127;
var i,j,k:longint;
min:real;
begin
readln(k);
i:=1;
min:=0;
while min -
02008-11-05 21:36:11@
Var
sn:real;
k:integer;
n:longint;
Begin
readln(k);
sn:=1;
n:=1;
while sn -
02008-11-03 20:15:09@
var i,k:longint;
t:extended;
begin readln(k);
while k-t>=0 do
begin inc(i);
t:=t+1/i;
end;
writeln(i);
end. -
02008-11-03 18:47:32@
编译通过...
├ 测试数据 01:答案正确... 0ms
├ 测试数据 02:答案正确... 0ms
├ 测试数据 03:答案正确... 0ms
├ 测试数据 04:答案正确... 0ms
├ 测试数据 05:答案正确... 0ms
---|---|---|---|---|---|---|---|-
Accepted 有效得分:100 有效耗时:0ms
丫!一次AC!!!
(啊!哪来的西红柿!!) -
02008-11-03 16:02:06@
//By Vinci Haber
var
k,n:longint;
s:real;
begin
readln(k);
s:=0;
for n := 1 to 200000000 do
begin
s:=s+1/n;
if s>k then break;
end;
writeln(n);
end.
水~~~~ -
02008-11-03 13:51:57@
program p1127;
var
m,k:longint;
s:extended;
begin
read(k);
repeat
m:=m+1;
s:=s+1/m;
until s>k;
write(m);
end.这么简单!!!!!
-
02008-11-02 16:44:28@
var i,k:longint;
t:extended;
begin readln(k);
while k-t>=0 do
begin inc(i);
t:=t+1/i;
end;
writeln(i);
end. -
02008-10-30 19:06:34@
var i,k:longint;
t:extended;begin
readln(k);
while k-t>=0 do
begin
inc(i);
t:=t+1/i;
end;
writeln(i);
end. -
02008-10-27 18:12:22@
program p1127;
var i,k:longint;
t:extended;
begin
readln(k);
while k-t>=0 do
begin
inc(i);
t:=t+1/i;
end;
writeln(i);
end. -
02008-10-27 15:54:57@
这是题?
var
i,k:longint;
tm:extended;
begin
readln(k);
while k-tm>=0 do
begin
inc(i);
tm:=tm+1/i;
end;
writeln(i);
end. -
02008-10-23 21:18:08@
#include
int main ()
{double s=0.0,n;
int i=1,k;
scanf ("%d",&k);
while (s -
02008-10-20 12:55:26@
编译通过...
├ 测试数据 01:答案正确... 0ms
├ 测试数据 02:答案正确... 0ms
├ 测试数据 03:答案正确... 0ms
├ 测试数据 04:答案正确... 0ms
├ 测试数据 05:答案正确... 0ms
---|---|---|---|---|---|---|---|-
Accepted 有效得分:100 有效耗时:0ms -
02008-10-17 17:36:17@
program a1;
var i,k:longint;
he:real;
begin
read(k);
he:=0;
for i:=1 to 1000000000 do
begin
he:=he+1/i;
if he> k then
break;
end;
write(i);
end.
嘻嘻!!!!!!
上下手!!!!!!!! -
02008-10-16 17:34:55@
program ex;
var sn:extended;
i,k,n:longint;
begin
readln(k);
n:=0;sn:=0;
repeat
inc(n);
sn:=sn+(1/n);
until sn>k;
writeln(n);
end. -
02008-10-15 21:14:54@
program vp1127;
const
n=10000000;
var
k,i:longint;
s:real;
begin
read(k);
s:=0;
for i:=1 to n do
begin
s:=s+1/i;
if s>k
then
begin
write(i);
exit
end
end
end.