Submission #3510715


Source Code Expand

var
  x,y,i,j,n:longint;
function zs(x:longint):boolean;
var
  i:longint;
begin
  if x=2 then exit(false);
  for i:=2 to trunc(sqrt(x)) do
    if x mod i=0 then exit(false);
  exit(true);
end;
begin
  readln(n);
  while n<>0 do
  begin
    for i:=1 to n do
    begin
      if (n mod i=0) and (zs(n div i))then begin writeln(n div i);break;end;
    end;
    readln(n);
  end;
end.

Submission Info

Submission Time
Task B - Working for the World
User luogu_bot2
Language Pascal (FPC 2.6.2)
Score 0
Code Size 379 Byte
Status WA
Exec Time 208 ms
Memory 128 KB

Compile Error

/usr/bin/ld.bfd: warning: ./link.res contains output sections; did you forget -T?

Judge Result

Set Name All
Score / Max Score 0 / 100
Status
AC × 25
WA × 2
Set Name Test Cases
All 00-sample, 10-minimum, 11-maximum, 12-little, 13-large, 14-middle, 15-zero, 50-random00, 50-random01, 50-random02, 50-random03, 50-random04, 50-random05, 50-random06, 50-random07, 50-random08, 50-random09, 50-random10, 50-random11, 50-random12, 50-random13, 50-random14, 50-random15, 50-random16, 50-random17, 50-random18, 50-random19
Case Name Status Exec Time Memory
00-sample AC 0 ms 128 KB
10-minimum WA 0 ms 128 KB
11-maximum AC 208 ms 128 KB
12-little WA 0 ms 128 KB
13-large AC 28 ms 128 KB
14-middle AC 1 ms 128 KB
15-zero AC 0 ms 128 KB
50-random00 AC 5 ms 128 KB
50-random01 AC 21 ms 128 KB
50-random02 AC 2 ms 128 KB
50-random03 AC 3 ms 128 KB
50-random04 AC 8 ms 128 KB
50-random05 AC 3 ms 128 KB
50-random06 AC 2 ms 128 KB
50-random07 AC 4 ms 128 KB
50-random08 AC 4 ms 128 KB
50-random09 AC 2 ms 128 KB
50-random10 AC 4 ms 128 KB
50-random11 AC 6 ms 128 KB
50-random12 AC 3 ms 128 KB
50-random13 AC 2 ms 128 KB
50-random14 AC 7 ms 128 KB
50-random15 AC 4 ms 128 KB
50-random16 AC 2 ms 128 KB
50-random17 AC 4 ms 128 KB
50-random18 AC 7 ms 128 KB
50-random19 AC 2 ms 128 KB