ENG
RUS
Timus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board
Discussion of Problem
1180
. Stone Game
Coldfeel
now,the online judge system doesn't work...ft...i don't know whether my solution right or not...
[1] // Problem
1180. Stone Game
23 Nov 2002 14:29
var s:string;
i,j:byte;
begin
readln(s);j:=0;
for i:=1 to length(s) do
if (s[i]>='0')and(s[i]<='9') then
j:=(j+ord(s[i])-ord('0'))mod 3;
if j=0 then writeln(2)
else begin writeln(1);writeln(j) end;
end.
Dilyan
Re: now,the online judge system doesn't work...ft...i don't know whether my solution right or not...
// Problem
1180. Stone Game
14 Jul 2004 15:43
yes, i think this solution i right
© 2000–2026
Timus Online Judge Team
. All rights reserved.