t.janssen52's blog

By t.janssen52, 10 years ago, In English

When i lookup a problem in the problemset e.g. 277A the solved tag shows solved by 2534 When i lookup this problem in the contest page this solved tag for problem A shows 1266.

Problem 388A shows solved by 2529 and 1332

which of these numbers is correct?

Full text and comments »

  • Vote: I like it
  • -9
  • Vote: I do not like it

By t.janssen52, 10 years ago, In English

I always get runtime error on problem (#253A) I can't find the reason for this message.

In Python

import sys n,m=map(int, raw_input().split())

i=min(n,m)

print (n-i)*"B"+i*"GB" +(m-i)*"G"

in pascal

uses sysutils,math; var b,g,i,x:longint;

s,p,q:string;

begin read(b,g);

s:='';

i:=min(b,g);

for x:=1 to i do

s:=s+'BG';

for x:=1 to (b-i) do

s:=s+'B';

for x:=1 to (g-i) do

s:=s+'G';

writeln(s);

end.
On my computers the code works well what goes wrong here?

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it