Submission #1869025


Source Code Expand

program Project1;

{$APPTYPE CONSOLE}

uses
  SysUtils,math;
var
  s,k:string;
  i,x,a,count:Integer;
begin
  try
    { TODO -oUser -cConsole Main : ここにコードを記述してください }
    Readln(s);

    k:='WBWBWWBWBWBWWBWBWWBWWBWBWWBWBWBWWBWBWWBW';
    count:=0;
    for i := 1 to 20 do begin
      if k[i]='W' then
        Inc(count);
      if s = Copy( k, i, 20 ) then
        Break;
    end;

    case count of
      1:Writeln('Do');
      2:Writeln('Re');
      3:Writeln('Mi');
      4:Writeln('Fa');
      5:Writeln('So');
      6:Writeln('La');
      7:Writeln('Si');
    end;
    Readln;
  except
    on E: Exception do
      Writeln(E.ClassName, ': ', E.Message);
  end;
end.

Submission Info

Submission Time
Task C - ピアニスト高橋君
User nmoxya
Language Pascal (FPC 2.6.2)
Score 0
Code Size 738 Byte
Status WA
Exec Time 0 ms
Memory 256 KB

Compile Error

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

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 100
Status
AC × 1
AC × 2
WA × 6
Set Name Test Cases
Sample example_0.txt
All example_0.txt, handmade_0.txt, handmade_1.txt, handmade_2.txt, handmade_3.txt, handmade_4.txt, handmade_5.txt, handmade_6.txt
Case Name Status Exec Time Memory
example_0.txt AC 0 ms 256 KB
handmade_0.txt AC 0 ms 256 KB
handmade_1.txt WA 0 ms 256 KB
handmade_2.txt WA 0 ms 256 KB
handmade_3.txt WA 0 ms 256 KB
handmade_4.txt WA 0 ms 256 KB
handmade_5.txt WA 0 ms 256 KB
handmade_6.txt WA 0 ms 256 KB