s_id
stringlengths 10
10
| p_id
stringlengths 6
6
| u_id
stringclasses 10
values | date
stringlengths 10
10
| language
stringclasses 1
value | original_language
stringclasses 1
value | filename_ext
stringclasses 1
value | status
stringclasses 3
values | cpu_time
stringclasses 11
values | memory
stringlengths 0
4
| code_size
stringlengths 2
3
| code
stringlengths 50
752
|
---|---|---|---|---|---|---|---|---|---|---|---|
s738025795 | p03035 | u581816556 | 1593028506 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 5 | 3680 | 333 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
A : Integer;
B : Integer;
begin
Get (A);
Get (B);
if A >= 13 then
Put_Line (Integer'Image (B));
elsif A >= 6 then
Put_Line (Integer'Image (B/2));
else
Put_Line ("0");
end if;
end Solve; |
s923225534 | p03047 | u581816556 | 1593051715 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 9 | 3668 | 215 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
N : Integer;
K : Integer;
begin
Get (N);
Get (K);
Put_Line (Integer'Image (N-K+1));
end Solve; |
s971841881 | p03059 | u581816556 | 1593053183 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 10 | 3660 | 243 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
A : Integer;
B : Integer;
T : Integer;
begin
Get (A);
Get (B);
Get (T);
Put_Line (Integer'Image (T/A*B));
end Solve; |
s215849905 | p03067 | u581816556 | 1593052084 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 8 | 3620 | 536 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
A : Integer;
B : Integer;
C : Integer;
begin
Get (A);
Get (B);
Get (C);
if A < B then
if C < A then
Put_Line ("No");
elsif C > B then
Put_Line ("No");
else
Put_Line ("Yes");
end if;
else
if C > A then
Put_Line ("No");
elsif C < B then
Put_Line ("No");
else
Put_Line ("Yes");
end if;
end if;
end Solve; |
s629876739 | p03071 | u581816556 | 1593014606 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 7 | 3652 | 410 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
A : Integer;
B : Integer;
score : Integer;
begin
Get (A);
Get (B);
for I in 1 .. 2 loop
if A >= B then
score := score+A;
A := A-1;
else
score := score+B;
B := B-1;
end if;
end loop;
Put_Line (Integer'Image (score));
end Solve; |
s336013134 | p03079 | u581816556 | 1593027577 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 8 | 3632 | 363 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
A : Integer;
B : Integer;
C : Integer;
begin
Get (A);
Get (B);
Get (C);
if A = B then
if B = C then
Put_Line ("Yes");
else
Put_Line ("No");
end if;
else
Put_Line ("No");
end if;
end Solve; |
s733900723 | p03101 | u581816556 | 1593030867 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 8 | 3676 | 277 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
H : Integer;
W : Integer;
A : Integer;
B : Integer;
begin
Get (H);
Get (W);
Get (A);
Get (B);
Put_Line (Integer'Image ((H-A)*(W-B)));
end Solve; |
s949812441 | p03105 | u581816556 | 1593031120 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 8 | 3672 | 320 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
A : Integer;
B : Integer;
C : Integer;
Ans : Integer;
begin
Get (A);
Get (B);
Get (C);
Ans := B/A;
if Ans > C then
Ans := C;
end if;
Put_Line (Integer'Image (Ans));
end Solve; |
s957598882 | p03139 | u581816556 | 1593053643 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 5 | 3612 | 434 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
N : Integer;
A : Integer;
B : Integer;
Max : Integer;
Min : Integer;
begin
Get (N);
Get (A);
Get (B);
Max := A;
if B < A then
Max := B;
end if;
if A+B <= N then
Min := 0;
else
Min := A+B-N;
end if;
Put (Integer'Image (Max));
Put (Integer'Image (Min));
end Solve; |
s206477464 | p03145 | u581816556 | 1593049377 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 8 | 3660 | 243 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
A : Integer;
B : Integer;
C : Integer;
begin
Get (A);
Get (B);
Get (C);
Put_Line (Integer'Image (A*B/2));
end Solve; |
s725191529 | p03155 | u581816556 | 1593028031 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 10 | 3608 | 253 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
N : Integer;
H : Integer;
W : Integer;
begin
Get (N);
Get (H);
Get (W);
Put_Line (Integer'Image ((N-H+1)*(N-W+1)));
end Solve; |
s134573199 | p03192 | u581816556 | 1593036677 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 6 | 3676 | 375 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
N : Integer;
A : Integer;
Count : Integer;
begin
Get (N);
Count := 0;
for I in 1 .. 4 loop
A := N-N/10*10;
if A = 2 then
Count := Count+1;
end if;
N := N/10;
end loop;
Put_Line (Integer'Image (Count));
end Solve; |
s484906855 | p03206 | u581816556 | 1593028752 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 7 | 3636 | 410 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
D : Integer;
begin
Get (D);
if D = 25 then
Put_Line ("Christmas");
end if;
if D = 24 then
Put_Line ("Christmas Eve");
end if;
if D = 23 then
Put_Line ("Christmas Eve Eve");
end if;
if D = 22 then
Put_Line ("Christmas Eve Eve Eve");
end if;
end Solve; |
s041174767 | p03210 | u581816556 | 1593053780 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 9 | 3672 | 321 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
X : Integer;
begin
Get (X);
if X = 7 then
Put_Line ("YES");
elsif X = 5 then
Put_Line ("YES");
elsif X = 3 then
Put_Line ("YES");
else
Put_Line ("NO");
end if;
end Solve; |
s846139263 | p03219 | u581816556 | 1593029118 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 7 | 3668 | 215 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
X : Integer;
Y : Integer;
begin
Get (X);
Get (Y);
Put_Line (Integer'Image (X+Y/2));
end Solve; |
s202334343 | p03238 | u581816556 | 1593029378 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 6 | 3664 | 318 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
N : Integer;
A : Integer;
B : Integer;
begin
Get (N);
if N = 1 then
Put_Line ("Hello World");
else
Get (A);
Get (B);
Put_Line (Integer'Image (A+B));
end if;
end Solve; |
s385457975 | p03260 | u581816556 | 1593049789 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 8 | 3624 | 304 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
A : Integer;
B : Integer;
begin
Get (A);
Get (B);
if A = 2 then
Put_Line ("No");
elsif B = 2 then
Put_Line ("No");
else
Put_Line ("Yes");
end if;
end Solve; |
s524254500 | p03280 | u581816556 | 1593029507 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 8 | 3660 | 221 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
A : Integer;
B : Integer;
begin
Get (A);
Get (B);
Put_Line (Integer'Image ((A-1)*(B-1)));
end Solve; |
s419069693 | p03288 | u581816556 | 1593029692 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 7 | 3668 | 284 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
R : Integer;
begin
Get (R);
if R < 1200 then
Put_Line ("ABC");
elsif R < 2800 then
Put_Line ("ARC");
else
Put_Line ("AGC");
end if;
end Solve; |
s373746283 | p03327 | u581816556 | 1593029889 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 8 | 3664 | 237 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
N : Integer;
begin
Get (N);
if N < 1000 then
Put_Line ("ABC");
else
Put_Line ("ABD");
end if;
end Solve; |
s841502519 | p03399 | u581816556 | 1593050948 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 6 | 3664 | 421 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
A : Integer;
B : Integer;
C : Integer;
D : Integer;
Ans : Integer;
begin
Get (A);
Get (B);
Get (C);
Get (D);
Ans := A;
if B < A then
Ans := B;
end if;
if C <= D then
Ans := Ans+C;
else
Ans := Ans+D;
end if;
Put_Line (Integer'Image (Ans));
end Solve; |
s996481386 | p03407 | u581816556 | 1593043714 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 6 | 3664 | 292 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
A : Integer;
B : Integer;
C : Integer;
begin
Get (A);
Get (B);
Get (C);
if A+B >= C then
Put_Line ("Yes");
else
Put_Line ("No");
end if;
end Solve; |
s418081372 | p03423 | u581816556 | 1593030127 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 3 | 3636 | 185 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
N : Integer;
begin
Get (N);
Put_Line (Integer'Image (N/3));
end Solve; |
s379838820 | p03447 | u581816556 | 1593030395 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 8 | 3672 | 258 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
X : Integer;
A : Integer;
B : Integer;
begin
Get (X);
Get (A);
Get (B);
X := X-A;
Put_Line (Integer'Image (X-X/B*B));
end Solve; |
s212952171 | p03473 | u581816556 | 1593030493 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 8 | 3620 | 186 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
M : Integer;
begin
Get (M);
Put_Line (Integer'Image (48-M));
end Solve; |
s626670839 | p03477 | u581816556 | 1593051278 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 5 | 3656 | 378 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
A : Integer;
B : Integer;
C : Integer;
D : Integer;
begin
Get (A);
Get (B);
Get (C);
Get (D);
if A+B > C+D then
Put_Line ("Left");
elsif A+B = C+D then
Put_Line ("Balanced");
else
Put_Line ("Right");
end if;
end Solve; |
s539083420 | p03563 | u581816556 | 1593030693 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 8 | 3648 | 215 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
R : Integer;
G : Integer;
begin
Get (R);
Get (G);
Put_Line (Integer'Image (G*2-R));
end Solve; |
s320118769 | p03635 | u581816556 | 1593043913 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 8 | 3656 | 221 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
n : Integer;
m : Integer;
begin
Get (n);
Get (m);
Put_Line (Integer'Image ((n-1)*(m-1)));
end Solve; |
s519656231 | p03671 | u581816556 | 1593030887 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 8 | 3652 | 356 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
A : Integer;
B : Integer;
C : Integer;
M : Integer;
begin
Get (A);
Get (B);
Get (C);
M := A;
if B > M then
M := B;
end if;
if C > M then
M := C;
end if;
Put_Line (Integer'Image (A+B+C-M));
end Solve; |
s343097218 | p03697 | u581816556 | 1593031026 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 9 | 3684 | 282 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
A : Integer;
B : Integer;
begin
Get (A);
Get (B);
if A+B >= 10 then
Put_Line ("error");
else
Put_Line (Integer'Image (A+B));
end if;
end Solve; |
s306219428 | p03719 | u581816556 | 1593031188 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 5 | 3680 | 332 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
A : Integer;
B : Integer;
C : Integer;
begin
Get (A);
Get (B);
Get (C);
if C < A then
Put_Line ("No");
elsif C > B then
Put_Line ("No");
else
Put_Line ("Yes");
end if;
end Solve; |
s015668259 | p03773 | u581816556 | 1593051501 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 8 | 3652 | 329 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
A : Integer;
B : Integer;
Ans : Integer;
begin
Get (A);
Get (B);
Ans := A+B;
if Ans < 24 then
Put_Line (Integer'Image (Ans));
else
Put_Line (Integer'Image (Ans-24));
end if;
end Solve; |
s852433247 | p03803 | u581816556 | 1593031414 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 5 | 3676 | 399 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
A : Integer;
B : Integer;
begin
Get (A);
Get (B);
if A = B then
Put_Line ("Draw");
elsif A = 1 then
Put_Line ("Alice");
elsif B = 1 then
Put_Line ("Bob");
elsif A > B then
Put_Line ("Alice");
else
Put_Line ("Bob");
end if;
end Solve; |
s412094302 | p03943 | u581816556 | 1593044140 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 6 | 3680 | 420 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
a : Integer;
b : Integer;
c : Integer;
max : Integer;
begin
Get (a);
Get (b);
Get (c);
max := a;
if b > max then
max := b;
end if;
if c > max then
max := c;
end if;
if a+b+c = max*2 then
Put_Line ("Yes");
else
Put_Line ("No");
end if;
end Solve; |
s896396834 | p03997 | u581816556 | 1593031709 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 7 | 3668 | 247 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
A : Integer;
B : Integer;
H : Integer;
begin
Get (A);
Get (B);
Get (H);
Put_Line (Integer'Image ((A+B)*H/2));
end Solve; |