ENG  RUSTimus 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

WA 2 (what's 2nd test?)
Posted by green_smile 31 Oct 2011 19:11
I got 1st Test, but 2nd is WA ... it's code

var s:char;
sum,i:integer;
begin
sum:=0;
while not eof do begin
read(s);
if (s='a') then sum:= sum+1;
if (s='b') then sum:= sum+2;
if (s='c') then sum:= sum+3;
if (s='d') then sum:= sum+1;
if (s='e') then sum:= sum+2;
if (s='f') then sum:= sum+3;
if (s='g') then sum:= sum+1;
if (s='h') then sum:= sum+2;
if (s='i') then sum:= sum+3;
if (s='j') then sum:= sum+1;
if (s='k') then sum:= sum+2;
if (s='l') then sum:= sum+3;
if (s='m') then sum:= sum+1;
if (s='n') then sum:= sum+2;
if (s='o') then sum:= sum+3;
if (s='p') then sum:= sum+1;
if (s='q') then sum:= sum+2;
if (s='r') then sum:= sum+3;
if (s='s') then sum:= sum+1;
if (s='t') then sum:= sum+2;
if (s='u') then sum:= sum+3;
if (s='v') then sum:= sum+1;
if (s='w') then sum:= sum+2;
if (s='x') then sum:= sum+3;
if (s='w') then sum:= sum+1;
if (s='z') then sum:= sum+2;
if (s='.') then sum:= sum+1;
if (s=',') then sum:= sum+2;
if (s='!') then sum:= sum+3;
if (s=' ') then sum:= sum+1;  end;
write(sum);
end.
Re: WA 2 (what's 2nd test?)
Posted by zagvozdkin Andrew 31 Oct 2011 22:59
just try "you." and "wow."
Re: WA 2 (what's 2nd test?)
Posted by green_smile 1 Nov 2011 08:00
AHAHHAHhhahahahah I got it
Re: WA 2 (what's 2nd test?)
Posted by hrantnurijanyan 4 Jan 2014 04:12
solved the problem with "you." and "wow." but it stils says WA2 (((
zagvozdkin Andrew wrote 31 October 2011 22:59
just try "you." and "wow."