?? ac1213.pas
字號:
program ural1213;
const
maxn=30;
var
name:array[1..maxn]of string[20];
s:string;
n:byte;
procedure add(s:string);
var
i:byte;
begin
for i:=1 to n do
if s=name[i] then exit;
inc(n);
name[n]:=s;
end;
begin
readln(s);
add(s);
repeat
readln(s);
if s='#' then break;
add(copy(s,1,pos('-',s)-1));
add(copy(s,pos('-',s)+1,length(s)-pos('-',s)));
until false;
writeln(n-1);
end.
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -