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
|
---|---|---|---|---|---|---|---|---|---|---|---|
s420947652 | p02570 | u440276250 | 1598733458 | Ada | Ada2012 (GNAT 9.2.1) | ada | Compile Error | 60 | erfegtteysggteg]lt;ftblt]ry[yghsfgfrhtrsjnbhtrsbnhty]et pbye |
||
s830623728 | p02594 | u045289115 | 1596583638 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 6 | 3664 | 225 | with Ada.Text_IO;
with Ada.Integer_Text_IO;
use Ada.Text_IO;
use Ada.Integer_Text_IO;
procedure main is
X : Integer;
begin
Get(X);
if (X >= 30) then Put_Line("Yes");
else Put_Line("No");
end if;
end main; |
s859690340 | p02612 | u045289115 | 1596584223 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 6 | 3660 | 157 | with Ada.Integer_Text_IO;
use Ada.Integer_Text_IO;
procedure main is
N : Integer;
begin
get(N);
put((1000 - N mod 1000) mod 1000, 0);
end main; |
s128150934 | p02612 | u581816556 | 1594195670 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 6 | 3660 | 237 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
N : Integer;
Ans : Integer;
begin
Get (N);
Ans := (N+1000-1)/1000*1000-N;
Put_Line (Integer'Image (Ans));
end Solve; |
s780898828 | p02621 | u045289115 | 1596584404 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 8 | 3640 | 150 | with Ada.Integer_Text_IO;
use Ada.Integer_Text_IO;
procedure main is
a : Integer;
begin
get(a);
put(a + a * a + a * a * a, 0);
end main; |
s176598761 | p02621 | u581816556 | 1594195343 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 8 | 3632 | 226 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
A : Integer;
Ans : Integer;
begin
Get (A);
Ans := A+A*A+A*A*A;
Put_Line (Integer'Image (Ans));
end Solve; |
s744169034 | p02627 | u045289115 | 1596586254 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 6 | 3600 | 165 | with Ada.Text_IO;
use Ada.Text_IO;
procedure main is
a : Character;
begin
get(a);
if (a < 'a') then put('A');
else put('a');
end if;
end main; |
s134811706 | p02639 | u045289115 | 1596589338 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 7 | 3656 | 226 | with Ada.Text_IO, Ada.Integer_Text_IO;
use Ada.Text_IO, Ada.Integer_Text_IO;
procedure main is
x: Integer;
begin
for i in 0..4 loop
get(x);
if (x = 0) then put(i + 1, 0);
end if;
end loop;
end main; |
s640663908 | p02639 | u517603920 | 1593403840 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 8 | 3520 | 244 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure abc170a is
x : Integer;
begin
for i in 1 .. 5 loop
get(x);
if x /= i then
put(Integer'Image(i));
exit;
end if;
end loop;
end abc170a; |
s772372526 | p02639 | u517603920 | 1593403440 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 9 | 3664 | 297 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure abc170a is
x : Integer;
tmp : Integer;
begin
get(x);
get(tmp);
x := x + tmp;
get(tmp);
x := x + tmp;
get(tmp);
x := x + tmp;
get(tmp);
x := x + tmp;
put(Integer'Image(15-x));
end abc170a; |
s990421750 | p02639 | u517603920 | 1593388458 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 8 | 3652 | 259 | WITH ADA.TEXT_IO; USE ADA.TEXT_IO;
WITH ADA.INTEGER_TEXT_IO; USE ADA.INTEGER_TEXT_IO;
PROCEDURE ABC170A IS
X : INTEGER;
BEGIN
FOR I IN 1 .. 5 LOOP
GET(X);
IF X /= I THEN
PUT(INTEGER'IMAGE(I));
END IF;
END LOOP;
END ABC170A; |
s706419213 | p02639 | u581816556 | 1593025154 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 8 | 3668 | 261 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Zero is
X : Integer;
begin
for I in 1 .. 5 loop
Get (X);
if X = 0 then
Put_Line (Integer'Image (I));
end if;
end loop;
end Zero; |
s765487864 | p02657 | u045289115 | 1596589424 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 7 | 3672 | 181 | with Ada.Text_IO, Ada.Integer_Text_IO;
use Ada.Text_IO, Ada.Integer_Text_IO;
procedure main is
A: Integer;
B: Integer;
begin
get(A);
get(B);
put(A * B, 0);
end main; |
s711054199 | p02657 | u045289115 | 1596589379 | Ada | Ada2012 (GNAT 9.2.1) | ada | Wrong Answer | 8 | 3588 | 159 | with Ada.Text_IO, Ada.Integer_Text_IO;
use Ada.Text_IO, Ada.Integer_Text_IO;
procedure main is
A: Integer;
B: Integer;
begin
put(A * B, 0);
end main; |
s628707958 | p02657 | u581816556 | 1593025294 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 7 | 3656 | 209 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Mul is
A : Integer;
B : Integer;
begin
Get (A);
Get (B);
Put_Line (Integer'Image (A*B));
end Mul; |
s280809579 | p02657 | u735016696 | 1591520853 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 5 | 3684 | 208 | with Ada.Text_IO;
with Ada.Integer_Text_IO;
procedure main is
a, b : Integer;
begin
Ada.Integer_Text_IO.Get(a, 0);
Ada.Integer_Text_IO.Get(b, 0);
Ada.Integer_Text_IO.Put(a * b, 0);
end main;
|
s037296134 | p02657 | u735016696 | 1591520803 | Ada | Ada2012 (GNAT 9.2.1) | ada | Compile Error | 209 | with Ada.Text_IO;
with Ada.Integer_Text_IO;
procedure main is
a, b : Integer;
begin
Ada.Integer_Text_IO.Get(a, 0);
Ada.Integer_Text_IO.Get(b, 0);
Ada.Integer_Text_IO.Put_Line(a * b);
end main; |
||
s570961055 | p02657 | u735016696 | 1591520689 | Ada | Ada2012 (GNAT 9.2.1) | ada | Compile Error | 201 | with Ada.Text_IO;
with Ada.Integer_Text_IO;
procedure main is
a, b : Integer;
begin
Ada.Integer_Text_IO.Get(a, 0);
Ada.Integer_Text_IO.Get(b, 0);
Ada.Text_IO.Put_Line(a * b);
end main; |
||
s655728897 | p02675 | u045289115 | 1596589943 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 6 | 3664 | 535 | with Ada.Text_IO, Ada.Integer_Text_IO;
use Ada.Text_IO, Ada.Integer_Text_IO;
procedure main is
N: Integer;
begin
get(N);
N := N rem 10;
if (N = 0) then put_line("pon");
elsif (N = 1) then put_line("pon");
elsif (N = 2) then put_line("hon");
elsif (N = 3) then put_line("bon");
elsif (N = 4) then put_line("hon");
elsif (N = 5) then put_line("hon");
elsif (N = 6) then put_line("pon");
elsif (N = 7) then put_line("hon");
elsif (N = 8) then put_line("pon");
else put ("hon");
end if;
end main; |
s514988970 | p02675 | u581816556 | 1593044461 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 8 | 3680 | 429 | 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);
N := N-N/10*10;
if N = 3 then
Put_Line ("bon");
elsif N = 0 then
Put_Line ("pon");
elsif N = 1 then
Put_Line ("pon");
elsif N = 6 then
Put_Line ("pon");
elsif N = 8 then
Put_Line ("pon");
else
Put_Line ("hon");
end if;
end Solve; |
s874644504 | p02675 | u274962354 | 1590177673 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 3 | 3648 | 326 | with Ada.Text_IO;
use Ada.Text_IO;
with Ada.Integer_Text_IO;
use Ada.Integer_Text_IO;
procedure Main is
x:Integer;
begin
get(x);
x:=x mod 10;
if x=2 or x=4 or x=5 or x=7 or x=9 then
put_line("hon");
elsif x=0 or x=1 or x=6 or x=8 then
put_line("pon");
else
put_line("bon");
end if;
end Main; |
s046883698 | p02676 | u816631826 | 1595804448 | Ada | Ada2012 (GNAT 9.2.1) | ada | Compile Error | 415 | #include <string.h>
#include <stdio.h>
int main (){int k;
char suatuKata[101];
int panjangKata = strlen(suatuKata);
scanf("%d", &k);
scanf("%s", &suatuKata);
suatuKata[k]='\0';
if (panjangKata>k){
for (int i=0; i <= k-1; i++){
printf("%c",suatuKata[i]);
}
printf("...");
}
else if(panjangKata=k){
printf("%s", suatuKata);
}
return 0;
} |
||
s993536471 | p02687 | u045289115 | 1596592125 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 6 | 3552 | 234 | with Ada.Text_IO, Ada.Integer_Text_IO;
use Ada.Text_IO, Ada.Integer_Text_IO;
procedure main is
S: String(1..3);
begin
S := get_line;
if (S(2) = 'B') then S(2) := 'R';
else S(2) := 'B';
end if;
put_line(S);
end main; |
s457664716 | p02687 | u735016696 | 1591521182 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 9 | 3588 | 272 | with Ada.Text_IO;
with Ada.Integer_Text_IO;
procedure main is
s : String (1 .. 3);
last : Natural;
begin
Ada.Text_IO.Get_Line(s, last);
if(s = "ABC")then
Ada.Text_IO.Put_Line("ARC");
else
Ada.Text_IO.Put_Line("ABC");
end if;
end main;
|
s460065716 | p02687 | u735016696 | 1591521139 | Ada | Ada2012 (GNAT 9.2.1) | ada | Compile Error | 253 | with Ada.Text_IO;
with Ada.Integer_Text_IO;
procedure main is
s : String (1 .. 3);
begin
Ada.Text_IO.Get_Line(s, last);
if(s = "ABC")then
Ada.Text_IO.Put_Line("ARC");
else
Ada.Text_IO.Put_Line("ABC");
end if;
end main;
|
||
s875407552 | p02687 | u735016696 | 1591521094 | Ada | Ada2012 (GNAT 9.2.1) | ada | Compile Error | 252 | with Ada.Text_IO;
with Ada.Integer_Text_IO;
procedure main is
s : String (1 .. 3);
begin
Ada.Text_IO.Get_Line(s, last);
if(s = "ABC)then
Ada.Text_IO.Put_Line("ARC");
else
Ada.Text_IO.Put_Line("ABC");
end if;
end main;
|
||
s319403402 | p02693 | u045289115 | 1596592448 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 8 | 3676 | 326 | with Ada.Text_IO, Ada.Integer_Text_IO;
use Ada.Text_IO, Ada.Integer_Text_IO;
procedure main is
K: Integer;
A: Integer;
B: Integer;
begin
get(K);
get(A);
get(B);
for i in A..B loop
if (i rem K = 0) then
put_line("OK");
return;
end if;
end loop;
put_line("NG");
end main; |
s281503744 | p02693 | u581816556 | 1593045060 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 7 | 3656 | 460 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
K : Integer;
A : Integer;
B : Integer;
flag : Integer;
begin
Get (K);
Get (A);
Get (B);
flag := 0;
for I in A .. B loop
if I/K*K = I then
if flag = 0 then
Put_Line ("OK");
end if;
flag := 1;
end if;
end loop;
if flag = 0 then
Put_Line ("NG");
end if;
end Solve; |
s481551936 | p02693 | u222030240 | 1588564356 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 4 | 3620 | 397 | with Ada.Text_IO;
with Ada.Integer_Text_IO;
with Ada.Float_Text_IO;
use Ada.Text_IO;
use Ada.Integer_Text_IO;
use Ada.Float_Text_IO;
procedure hoge is
k: Integer;
a: Integer;
b: Integer;
flag: Integer :=0;
begin
get(k);
get(a);
get(b);
for i in a..b loop
if (i rem k)=0 then
flag:=1;
end if;
end loop;
if flag = 1 then
put_line("OK");
else
put_line("NG");
end if;
end hoge; |
s470592800 | p02699 | u045289115 | 1596592625 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 9 | 3644 | 241 | with Ada.Text_IO, Ada.Integer_Text_IO;
use Ada.Text_IO, Ada.Integer_Text_IO;
procedure main is
S: Integer;
W: Integer;
begin
get(S);
get(W);
if (W >= S) then put_line("unsafe");
else put_line("safe");
end if;
end main; |
s347795146 | p02699 | u274962354 | 1593353363 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 7 | 3672 | 244 | with Ada.Text_IO;
use Ada.Text_IO;
with Ada.Integer_Text_IO;
use Ada.Integer_Text_IO;
procedure Main is
s:Integer;
w:Integer;
begin
get(s);
get(w);
if w>=s then
Put_Line("unsafe");
else
Put_Line("safe");
end if;
end Main;
|
s101230412 | p02699 | u581816556 | 1593054581 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 6 | 3660 | 267 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
S : Integer;
W : Integer;
begin
Get (S);
Get (W);
if W >= S then
Put_Line ("unsafe");
else
Put_Line ("safe");
end if;
end Solve; |
s646252415 | p02699 | u735016696 | 1591521394 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 2 | 3668 | 285 | with Ada.Text_IO;
with Ada.Integer_Text_IO;
procedure main is
s, w : Integer;
begin
Ada.Integer_Text_IO.Get(s, 0);
Ada.Integer_Text_IO.Get(w, 0);
if(s <= w)then
Ada.Text_IO.Put_Line("unsafe");
else
Ada.Text_IO.Put_Line("safe");
end if;
end main;
|
s357269581 | p02699 | u222030240 | 1588563755 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 2 | 3676 | 281 | with Ada.Text_IO;
with Ada.Integer_Text_IO;
with Ada.Float_Text_IO;
use Ada.Text_IO;
use Ada.Integer_Text_IO;
use Ada.Float_Text_IO;
procedure hoge is
s: Integer;
w: Integer;
begin
get(s);
get(w);
if s>w then
put_Line("safe");
else
put_Line("unsafe");
end if;
end hoge; |
s215507032 | p02699 | u073549161 | 1588532787 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 5 | 3648 | 264 | with Ada.Text_IO;
with Ada.Integer_Text_IO;
use Ada.Text_IO;
procedure abc165a is
s: Integer;
w: Integer;
begin
Ada.Integer_Text_IO.Get(s, 0);
Ada.Integer_Text_IO.Get(w, 0);
if s > w then
Put_Line("safe");
else
Put_Line("unsafe");
end if;
end abc165a; |
s025714145 | p02699 | u073549161 | 1588532700 | Ada | Ada2012 (GNAT 9.2.1) | ada | Wrong Answer | 3 | 3664 | 265 | with Ada.Text_IO;
with Ada.Integer_Text_IO;
use Ada.Text_IO;
procedure abc165a is
s: Integer;
w: Integer;
begin
Ada.Integer_Text_IO.Get(s, 0);
Ada.Integer_Text_IO.Get(w, 0);
if s >= w then
Put_Line("safe");
else
Put_Line("unsafe");
end if;
end abc165a; |
s675012448 | p02700 | u222030240 | 1588565827 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 3 | 3680 | 452 | with Ada.Text_IO;
with Ada.Integer_Text_IO;
with Ada.Float_Text_IO;
use Ada.Text_IO;
use Ada.Integer_Text_IO;
use Ada.Float_Text_IO;
procedure hoge is
a: integer;
b: integer;
c: integer;
d: integer;
cnt: integer :=0;
begin
get(a);
get(b);
get(c);
get(d);
while a>0 and c>0 loop
if (cnt rem 2)=0 then
c:=c-b;
else
a:=a-d;
end if;
cnt:=cnt+1;
end loop;
if a<=0 then
put_line("No");
else
put_line("Yes");
end if;
end hoge; |
s263429198 | p02700 | u222030240 | 1588565731 | Ada | Ada2012 (GNAT 9.2.1) | ada | Wrong Answer | 6 | 3652 | 454 | with Ada.Text_IO;
with Ada.Integer_Text_IO;
with Ada.Float_Text_IO;
use Ada.Text_IO;
use Ada.Integer_Text_IO;
use Ada.Float_Text_IO;
procedure hoge is
a: integer;
b: integer;
c: integer;
d: integer;
cnt: integer :=0;
begin
get(a);
get(b);
get(c);
get(d);
while a>=0 and c>=0 loop
if (cnt rem 2)=0 then
c:=c-b;
else
a:=a-d;
end if;
cnt:=cnt+1;
end loop;
if a<=0 then
put_line("No");
else
put_line("Yes");
end if;
end hoge; |
s381716899 | p02705 | u045289115 | 1596593009 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 7 | 3712 | 246 | with Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
use Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
procedure main is
R: Integer;
Pi: Float;
begin
Pi := 3.14159;
get(R);
put(Float(R) * 2.0 * Pi, 0, 2, 0);
end main; |
s570749783 | p02711 | u045289115 | 1596593233 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 8 | 3612 | 352 | with Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
use Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
procedure main is
S: String(1..3);
begin
S := get_line;
if (S(1) = '7') then put_line("Yes");
elsif (S(2) = '7') then put_line("Yes");
elsif (S(3) = '7') then put_line("Yes");
else put_line("No");
end if;
end main; |
s275014806 | p02711 | u863370423 | 1595911840 | Ada | Ada2012 (GNAT 9.2.1) | ada | Compile Error | 264 | #include <stdio.h>
int main (){
int input, digit1, digit2,digit3;
scanf("%d",&input);
digit3= input%10;
digit2= (input%100- input%10)/10;
digit1= input/100;
if (digit1==7||digit2==7||digit3==7){
printf("Yes");
}
else {
printf("No");
}
return 0;
} |
||
s509892807 | p02711 | u581816556 | 1593035673 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 9 | 3652 | 489 | 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;
begin
Get (N);
A := N-N/10*10;
if A = 7 then
Put_Line ("Yes");
else
N := N/10;
A := N-N/10*10;
if A = 7 then
Put_Line ("Yes");
else
A := N/10;
if A = 7 then
Put_Line ("Yes");
else
Put_Line ("No");
end if;
end if;
end if;
end Solve; |
s733842816 | p02711 | u735016696 | 1591522028 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 2 | 3640 | 446 | with Ada.Text_IO;
with Ada.Integer_Text_IO;
procedure main is
n : String(1 .. 3);
last : Natural;
c : Integer := 0;
begin
Ada.Text_IO.Get_Line(n, last);
if(n(1) = '7')then
c := c + 1;
elsif(n(2) = '7')then
c := c + 1;
elsif(n(3) = '7')then
c := c + 1;
end if;
if(c > 0)then
Ada.Text_IO.Put_Line("Yes");
else
Ada.Text_IO.Put_Line("No");
end if;
end main; |
s501738749 | p02711 | u735016696 | 1591521999 | Ada | Ada2012 (GNAT 9.2.1) | ada | Compile Error | 446 | with Ada.Text_IO;
with Ada.Integer_Text_IO;
procedure main is
n : String(1 .. 3);
last : Natural;
c : Intager := 0;
begin
Ada.Text_IO.Get_Line(n, last);
if(n(1) = '7')then
c := c + 1;
elsif(n(2) = '7')then
c := c + 1;
elsif(n(3) = '7')then
c := c + 1;
end if;
if(c > 0)then
Ada.Text_IO.Put_Line("Yes");
else
Ada.Text_IO.Put_Line("No");
end if;
end main; |
||
s624340124 | p02711 | u735016696 | 1591521969 | Ada | Ada2012 (GNAT 9.2.1) | ada | Compile Error | 447 | with Ada.Text_IO;
with Ada.Integer_Text_IO;
procedure main is
n : String(1 .. 3);
last : Natural;
c : Intager := 0;
begin
Ada.Text_IO.Get_Line(n, last);
if(n(1) = '7')then
c := c + 1;
elsif(n(2) = '7')then
c := c + 1;
elsif(n(3) = '7')then
c := c + 1;
end if;
if(c > 0)then
Ada.Text_IO.Put_Line("Yes");
else:
Ada.Text_IO.Put_Line("No");
end if;
end main; |
||
s650495686 | p02711 | u735016696 | 1591521908 | Ada | Ada2012 (GNAT 9.2.1) | ada | Compile Error | 426 | with Ada.Text_IO;
with Ada.Integer_Text_IO;
procedure main is
n : String(1 .. 3);
last : Natural;
c : Intager := 0;
begin
Ada.Text_IO.Get_Line(n, last);
if(n(1) = '7')then
c++;
elsif(n(2) = '7')then
c++;
elsif(n(3) = '7')then
c++;
end if;
if(c > 0)then
Ada.Text_IO.Put_Line("Yes");
else:
Ada.Text_IO.Put_Line("No");
end if;
end main; |
||
s087281767 | p02711 | u274962354 | 1590179977 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 4 | 3604 | 341 | with Ada.Text_IO;
use Ada.Text_IO;
with Ada.Integer_Text_IO;
use Ada.Integer_Text_IO;
with Ada.Float_Text_IO;
use Ada.Float_Text_IO;
procedure main is
type ar is array(1..10000) of Integer;
s:String(1..3);
begin
get(s);
if s(1)='7' or s(2)='7' or s(3)='7' then
put_line("Yes");
else
put_line("No");
end if;
end Main; |
s439976544 | p02711 | u222030240 | 1588565362 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 4 | 3664 | 412 | with Ada.Text_IO;
with Ada.Integer_Text_IO;
with Ada.Float_Text_IO;
use Ada.Text_IO;
use Ada.Integer_Text_IO;
use Ada.Float_Text_IO;
procedure hoge is
n: integer;
flag: Integer :=0;
begin
get(n);
if (n rem 10)=7 then
flag:=1;
end if;
if (n/10 rem 10)=7 then
flag:=1;
end if;
if (n/100 rem 10)=7 then
flag:=1;
end if;
if flag = 1 then
put_line("Yes");
else
put_line("No");
end if;
end hoge; |
s816822056 | p02717 | u045289115 | 1596593389 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 9 | 3596 | 309 | with Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
use Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
procedure main is
X: Integer;
Y: Integer;
Z: Integer;
begin
get(X);
get(Y);
get(Z);
put(Z, 0);
new_line;
put(X, 0);
new_line;
put(Y, 0);
new_line;
end main; |
s011880108 | p02717 | u581816556 | 1593054780 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 8 | 3648 | 290 | 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;
Z : Integer;
begin
Get (X);
Get (Y);
Get (Z);
Put (Integer'Image (Z));
Put (Integer'Image (X));
Put (Integer'Image (Y));
end Solve; |
s805365016 | p02717 | u274962354 | 1590177885 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 6 | 3684 | 267 | with Ada.Text_IO;
use Ada.Text_IO;
with Ada.Integer_Text_IO;
use Ada.Integer_Text_IO;
procedure Main is
x:Integer;
y:Integer;
z:Integer;
begin
get(x);
get(y);
get(z);
put(z);
new_line;
put(x);
new_line;
put(y);
new_line;
end Main; |
s386623932 | p02718 | u274962354 | 1590179617 | Ada | Ada2012 (GNAT 9.2.1) | ada | Wrong Answer | 2 | 3728 | 599 | with Ada.Text_IO;
use Ada.Text_IO;
with Ada.Integer_Text_IO;
use Ada.Integer_Text_IO;
with Ada.Float_Text_IO;
use Ada.Float_Text_IO;
procedure Main is
type ar is array(1..10000) of Integer;
n:integer;
m:integer;
a:ar;
cnt:integer;
ans:integer;
begin
get(n);
get(m);
cnt:=0;
ans:=0;
for i in 1..n loop
get(a(i));
cnt:=cnt+a(i);
end loop;
cnt:=cnt/(4*m);
for i in 1..n loop
if a(i)>=cnt then
ans:=1+ans;
end if;
end loop;
if ans>=m then
put_line("Yes");
else
put_line("No");
end if;
end Main; |
s094383065 | p02723 | u045289115 | 1596593697 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 8 | 3664 | 284 | with Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
use Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
procedure main is
S: String(1..6);
begin
S := get_line;
if S(3) = S(4) and then S(5) = S(6) then put_line("Yes");
else put_line("No");
end if;
end main; |
s974414880 | p02729 | u045289115 | 1596593892 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 10 | 3724 | 248 | with Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
use Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
procedure main is
N: Integer;
M: Integer;
begin
get(N);
get(M);
put(N * (N - 1) / 2 + M * (M - 1) / 2, 0);
end main; |
s983832071 | p02729 | u274962354 | 1593353659 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 7 | 3728 | 211 | with Ada.Text_IO;
use Ada.Text_IO;
with Ada.Integer_Text_IO;
use Ada.Integer_Text_IO;
procedure Main is
s:Integer;
w:Integer;
begin
get(s);
get(w);
put(s*(s-1)/2+w*(w-1)/2);
new_line;
end Main; |
s574333388 | p02753 | u045289115 | 1596593953 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 8 | 3648 | 284 | with Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
use Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
procedure main is
S: String(1..3);
begin
S := get_line;
if S(1) = S(2) and then S(2) = S(3) then put_line("No");
else put_line("Yes");
end if;
end main; |
s666447287 | p02759 | u045289115 | 1596594008 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 10 | 3596 | 204 | with Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
use Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
procedure main is
N: Integer;
begin
get(N);
put((N + 2 - 1) / 2, 0);
end main; |
s980516850 | p02759 | u581816556 | 1593025533 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 6 | 3652 | 189 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Paper is
N : Integer;
begin
Get (N);
Put_Line (Integer'Image ((N+1)/2));
end Paper; |
s133229202 | p02759 | u222030240 | 1589424400 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 2 | 3692 | 210 | with Ada.Text_IO;
with Ada.Integer_Text_IO;
with Ada.Float_Text_IO;
use Ada.Text_IO;
use Ada.Integer_Text_IO;
use Ada.Float_Text_IO;
procedure hoge is
n: integer;
begin
get(n);
put(n/2+(n rem 2));
end hoge; |
s530757695 | p02765 | u045289115 | 1596594119 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 8 | 3696 | 277 | with Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
use Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
procedure main is
N: Integer;
R: Integer;
begin
get(N);
get(R);
if (N > 10) then put(R);
else put(R + (10 - N) * 100, 0);
end if;
end main; |
s143050756 | p02765 | u222030240 | 1589424562 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 3 | 3696 | 272 | with Ada.Text_IO;
with Ada.Integer_Text_IO;
with Ada.Float_Text_IO;
use Ada.Text_IO;
use Ada.Integer_Text_IO;
use Ada.Float_Text_IO;
procedure hoge is
n: integer;
r: integer;
begin
get(n);
get(r);
if n>=10 then
put(r);
else
put(r+100*(10-n));
end if;
end hoge; |
s185269941 | p02771 | u045289115 | 1596572683 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 6 | 3672 | 425 | with Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
use Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
procedure main is
A: Integer;
B: Integer;
C: Integer;
begin
get(A);
get(B);
get(C);
if (A = B and then B /= C) then put_line("Yes");
elsif (B = C and then C /= A) then put_line("Yes");
elsif (A = C and then C /= B) then put_line("Yes");
else put_line("No");
end if;
end main; |
s209113681 | p02771 | u581816556 | 1593027130 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 7 | 3672 | 507 | 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;
flag : Integer;
begin
Get (A);
Get (B);
Get (C);
if A = B then
if A = C then
Put_Line ("No");
else
Put_Line ("Yes");
end if;
else
if A = C then
Put_Line ("Yes");
elsif B = C then
Put_Line ("Yes");
else
Put_Line ("No");
end if;
end if;
end Solve; |
s094954727 | p02771 | u222030240 | 1589403600 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 4 | 3664 | 420 | with Ada.Text_IO;
with Ada.Integer_Text_IO;
with Ada.Float_Text_IO;
use Ada.Text_IO;
use Ada.Integer_Text_IO;
use Ada.Float_Text_IO;
procedure hoge is
a: integer;
b: integer;
c: integer;
begin
get(a);
get(b);
get(c);
if a=b then
if a/=c then
put_line("Yes");
else
put_line("No");
end if;
elsif a=c then
put_line("Yes");
elsif b=c then
put_line("Yes");
else
put_line("No");
end if;
end hoge; |
s430692489 | p02783 | u045289115 | 1596572877 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 6 | 3632 | 230 | with Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
use Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
procedure main is
H: Integer;
A: Integer;
begin
get(H);
get(A);
put((H + A - 1) / A, 0);
end main; |
s386489355 | p02783 | u581816556 | 1593027316 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 8 | 3668 | 219 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
H : Integer;
A : Integer;
begin
Get (H);
Get (A);
Put_Line (Integer'Image ((H+A-1)/A));
end Solve; |
s616889519 | p02783 | u222030240 | 1589403706 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 4 | 3684 | 228 | with Ada.Text_IO;
with Ada.Integer_Text_IO;
with Ada.Float_Text_IO;
use Ada.Text_IO;
use Ada.Integer_Text_IO;
use Ada.Float_Text_IO;
procedure hoge is
h: integer;
a: integer;
begin
get(h);
get(a);
put((h+a-1)/a);
end hoge; |
s936351498 | p02789 | u045289115 | 1596572945 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 8 | 3688 | 273 | with Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
use Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
procedure main is
N: Integer;
M: Integer;
begin
get(N);
get(M);
if (N = M) then put_line("Yes");
else put_line("No");
end if;
end main; |
s041081745 | p02789 | u222030240 | 1589403769 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 2 | 3640 | 276 | with Ada.Text_IO;
with Ada.Integer_Text_IO;
with Ada.Float_Text_IO;
use Ada.Text_IO;
use Ada.Integer_Text_IO;
use Ada.Float_Text_IO;
procedure hoge is
n: integer;
m: integer;
begin
get(n);
get(m);
if n=m then
put_line("Yes");
else
put_line("No");
end if;
end hoge; |
s202509115 | p02801 | u045289115 | 1596573584 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 7 | 3568 | 752 | with Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
use Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
procedure main is
type Arr is array(1..26) of Character;
A: Arr;
C: Character;
begin
A(1) := 'a';
A(2) := 'b';
A(3) := 'c';
A(4) := 'd';
A(5) := 'e';
A(6) := 'f';
A(7) := 'g';
A(8) := 'h';
A(9) := 'i';
A(10) := 'j';
A(11) := 'k';
A(12) := 'l';
A(13) := 'm';
A(14) := 'n';
A(15) := 'o';
A(16) := 'p';
A(17) := 'q';
A(18) := 'r';
A(19) := 's';
A(20) := 't';
A(21) := 'u';
A(22) := 'v';
A(23) := 'w';
A(24) := 'x';
A(25) := 'y';
A(26) := 'z';
get(C);
for i in 1..25 loop
if (A(i) = C) then put(A(i + 1));
end if;
end loop;
end main; |
s481652764 | p02811 | u045289115 | 1596595492 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 7 | 3660 | 280 | with Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
use Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
procedure main is
N: Integer;
M: Integer;
begin
get(N);
get(M);
if (N * 500 >= M) then put_line("Yes");
else put_line("No");
end if;
end main; |
s484485100 | p02811 | u222030240 | 1589425502 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 3 | 3660 | 281 | with Ada.Text_IO;
with Ada.Integer_Text_IO;
with Ada.Float_Text_IO;
use Ada.Text_IO;
use Ada.Integer_Text_IO;
use Ada.Float_Text_IO;
procedure hoge is
k: integer;
x: integer;
begin
get(k);
get(x);
if 500*k>=x then
put_line("Yes");
else
put_line("No");
end if;
end hoge; |
s748356234 | p02819 | u863370423 | 1592669848 | Ada | Ada2012 (GNAT 9.2.1) | ada | Compile Error | 445 | #include <iostream>
#include<math.h>
using namespace std;
//Compiler version g++ 6.3.0
int prime(int n){
if(n==2)return 1;
if(n%2==0)return -1;
for(int i=3;i<=sqrt(n);i=i+2){
if(n%i==0){
return -1;
}
}
return 1;
}
int main()
{
int n;
cin>>n;
if(prime(n)==1){
cout<<n;
}
else{
while(1){
n++;
if(prime(n)==1){
cout<<n;break;
}
}
}
return 0;
} |
||
s836866408 | p02822 | u863370423 | 1598728222 | Ada | Ada2012 (GNAT 9.2.1) | ada | Compile Error | 50 | https://www.youtube.com/watch?v=qxrV2pqroDY&t=109s |
||
s356507543 | p02829 | u045289115 | 1596596184 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 6 | 3700 | 221 | with Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
use Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
procedure main is
N: Integer;
M: Integer;
begin
get(N);
get(M);
put(6 - N - M);
end main; |
s521949471 | p02829 | u222030240 | 1589425664 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 2 | 3696 | 224 | with Ada.Text_IO;
with Ada.Integer_Text_IO;
with Ada.Float_Text_IO;
use Ada.Text_IO;
use Ada.Integer_Text_IO;
use Ada.Float_Text_IO;
procedure hoge is
a: integer;
b: integer;
begin
get(a);
get(b);
put(6-a-b);
end hoge; |
s184967313 | p02835 | u045289115 | 1596596263 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 7 | 3660 | 311 | with Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
use Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
procedure main is
A: Integer;
B: Integer;
C: Integer;
begin
get(A);
get(B);
get(C);
if (A + B + C >= 22) then put_line("bust");
else put_line("win");
end if;
end main; |
s493625128 | p02835 | u581816556 | 1593025850 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 7 | 3572 | 297 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Black is
A : Integer;
B : Integer;
C : Integer;
begin
Get (A);
Get (B);
Get (C);
if A+B+C >= 22 then
Put_Line ("bust");
else
Put_Line ("win");
end if;
end Black; |
s398352521 | p02835 | u222030240 | 1589425768 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 3 | 3684 | 306 | with Ada.Text_IO;
with Ada.Integer_Text_IO;
with Ada.Float_Text_IO;
use Ada.Text_IO;
use Ada.Integer_Text_IO;
use Ada.Float_Text_IO;
procedure hoge is
a: integer;
b: integer;
c: integer;
begin
get(a);
get(b);
get(c);
if a+b+c>=22 then
put_line("bust");
else
put_line("win");
end if;
end hoge; |
s994809416 | p02835 | u222030240 | 1589425734 | Ada | Ada2012 (GNAT 9.2.1) | ada | Wrong Answer | 5 | 3664 | 306 | with Ada.Text_IO;
with Ada.Integer_Text_IO;
with Ada.Float_Text_IO;
use Ada.Text_IO;
use Ada.Integer_Text_IO;
use Ada.Float_Text_IO;
procedure hoge is
a: integer;
b: integer;
c: integer;
begin
get(a);
get(b);
get(c);
if a+b+c>=22 then
put_line("win");
else
put_line("bust");
end if;
end hoge; |
s863760185 | p02841 | u581816556 | 1593035860 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 7 | 3684 | 324 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
M1 : Integer;
D1 : Integer;
M2 : Integer;
D2 : Integer;
begin
Get (M1);
Get (D1);
Get (M2);
Get (D2);
if M1 = M2 then
Put_Line ("0");
else
Put_Line ("1");
end if;
end Solve; |
s428221429 | p02847 | u045289115 | 1596596535 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 8 | 3604 | 464 | with Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
use Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
procedure main is
type Week is array(1..7) of String(1..3);
S: String(1..3);
W: Week;
begin
W(1) := "SUN";
W(2) := "MON";
W(3) := "TUE";
W(4) := "WED";
W(5) := "THU";
W(6) := "FRI";
W(7) := "SAT";
S := get_line;
for i in 1..7 loop
if (W(i) = S) then put(7 - i + 1, 0);
end if;
end loop;
end main; |
s853869853 | p02859 | u045289115 | 1596596564 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 11 | 3648 | 194 | with Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
use Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
procedure main is
A: Integer;
begin
get(A);
put(A * A, 0);
end main; |
s022340856 | p02859 | u581816556 | 1593025964 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 8 | 3668 | 181 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Max is
N : Integer;
begin
Get (N);
Put_Line (Integer'Image (N*N));
end Max; |
s593510751 | p02865 | u581816556 | 1593026262 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 7 | 3668 | 189 | 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-1)/2));
end Solve; |
s677816971 | p02879 | u045289115 | 1596596640 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 7 | 3652 | 284 | with Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
use Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
procedure main is
A: Integer;
B: Integer;
begin
get(A);
get(B);
if (A <= 9 and then B <= 9) then put(A * B, 0);
else put(-1, 0);
end if;
end main; |
s599219275 | p02879 | u581816556 | 1593026575 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 8 | 3688 | 318 | 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 > 9 then
Put_Line ("-1");
elsif B > 9 then
Put_Line ("-1");
else
Put_Line (Integer'Image (A*B));
end if;
end Solve; |
s627537752 | p02879 | u222030240 | 1589426038 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 4 | 3708 | 293 | with Ada.Text_IO;
with Ada.Integer_Text_IO;
with Ada.Float_Text_IO;
use Ada.Text_IO;
use Ada.Integer_Text_IO;
use Ada.Float_Text_IO;
procedure hoge is
a: integer;
b: integer;
begin
get(a);
get(b);
if a>=10 then
put(-1);
elsif b>=10 then
put(-1);
else
put(a*b);
end if;
end hoge; |
s607348254 | p02885 | u045289115 | 1596596702 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 7 | 3660 | 275 | with Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
use Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
procedure main is
A: Integer;
B: Integer;
begin
get(A);
get(B);
if (B * 2 >= A) then put(0, 0);
else put(A - B * 2, 0);
end if;
end main; |
s538878521 | p02885 | u581816556 | 1593026853 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 8 | 3676 | 279 | 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 B*2 >= A then
Put_Line ("0");
else
Put_Line (Integer'Image (A-B*2));
end if;
end Solve; |
s927770383 | p02885 | u222030240 | 1589426108 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 3 | 3700 | 266 | with Ada.Text_IO;
with Ada.Integer_Text_IO;
with Ada.Float_Text_IO;
use Ada.Text_IO;
use Ada.Integer_Text_IO;
use Ada.Float_Text_IO;
procedure hoge is
a: integer;
b: integer;
begin
get(a);
get(b);
if a<=b*2 then
put(0);
else
put(a-b*2);
end if;
end hoge; |
s786213232 | p02897 | u045289115 | 1596844738 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 10 | 3708 | 295 | with Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
use Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
procedure main is
N: Integer;
begin
get(N);
if (N rem 2 = 0) then
put(0.5, 0, 6, 0);
else
put(Float(N / 2 + 1) / Float(N), 0, 6, 0);
end if;
end main;
|
s148404027 | p02945 | u581816556 | 1593027084 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 5 | 3656 | 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;
M : Integer;
begin
Get (A);
Get (B);
M := A+B;
if A-B > M then
M := A-B;
end if;
if A*B > M then
M := A*B;
end if;
Put_Line (Integer'Image (M));
end Solve; |
s616232404 | p02951 | u581816556 | 1593027330 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 6 | 3676 | 322 | 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+C-A;
if ANS < 0 then
ANS := 0;
end if;
Put_Line (Integer'Image (ANS));
end Solve; |
s905611929 | p02969 | u581816556 | 1593027443 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 8 | 3668 | 187 | 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);
Put_Line (Integer'Image (3*r*r));
end Solve; |
s022745198 | p02981 | u581816556 | 1593027642 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 7 | 3680 | 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);
Get (A);
Get (B);
if N*A < B then
Put_Line (Integer'Image (N*A));
else
Put_Line (Integer'Image (B));
end if;
end Solve; |
s651610503 | p02999 | u581816556 | 1593006175 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 6 | 3684 | 259 | 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;
begin
Get (X);
Get (A);
if X < A then
Put_Line ("0");
else
Put_Line ("10");
end if;
end Solve; |
s432139435 | p03005 | u581816556 | 1593028023 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 6 | 3692 | 274 | 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);
if K = 1 then
Put_Line ("0");
else
Put_Line (Integer'Image (N-K));
end if;
end Solve; |
s993514387 | p03023 | u581816556 | 1593028150 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 6 | 3660 | 191 | 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-2)*180));
end Solve; |
s982077198 | p03029 | u581816556 | 1593028292 | Ada | Ada2012 (GNAT 9.2.1) | ada | Accepted | 8 | 3644 | 228 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Solve is
A : Integer;
P : Integer;
begin
Get (A);
Get (P);
P := P+A*3;
Put_Line (Integer'Image (P/2));
end Solve; |
End of preview. Expand
in Dataset Viewer.
README.md exists but content is empty.
Use the Edit dataset card button to edit it.
- Downloads last month
- 38