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
1567
. SMS-spam
what is wrong?
Posted by
Kirill Pugachov
10 Oct 2011 22:21
var c:char;s:integer;
begin
s:=0;
case c of
'a','d','g','j','m','p','s','v','y','.','#':s:=s+1;
'b','e','h','k','n','q','t','w','z',',','_':s:=s+2;
'c','f','i','l','o','r','u','x','!':s:=s+3;
end;
read(c);
write(s);
end.
Re: what is wrong?
Posted by
ONU_Latysh
30 Oct 2011 02:42
second case line
it's not '_' they mean space line ' '
they've just put '_' on the phone so you'll understand
don't believe me -- look at the example
© 2000–2024
Timus Online Judge Team
. All rights reserved.