var a,b: string;
procedure giai;
var i: longint;
begin
if length(a)<length(b) then
write(-1);
if length(a)>length(b) then
write(1);
if length(a)=length(b) then
begin
if a<b then write(-1);
if a=b then write(0);
if a>b then write(1);
end;
end;
begin
assign(input,'so.inp'); reset(input);
assign(output,'so.out'); rewrite(output);
readln(a);
readln(b);
giai;
close(input); close(output);
end.
* Chuyên dạy lập trình ONLINE cho học sinh THCS, THPT *.
Mọi giao lưu, trao đổi, xin liên hệ: Lê Quang Vinh - zalo: 037.803.8755.
Page: Lớp học Code Sky
Group FB1: Ôn thi HSG9 - THTB - TS10 chuyên tin
Group FB2: Học Scratch - Ôn thi Tin học trẻ bảng A
Thứ Tư, 27 tháng 4, 2022
SO PASCAL
Đăng ký:
Đăng Nhận xét (Atom)
Không có nhận xét nào:
Đăng nhận xét
Lưu ý: Chỉ thành viên của blog này mới được đăng nhận xét.