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 1230. Introspective Program

How can this get WA?
Posted by Maigo Akisame (maigoakisame@yahoo.com.cn) 18 Aug 2004 09:41
program ural1230;
begin
 writeln('A="?''A="+''"''+"''+A+''"+''"''+";''+A";?''A="''+A+''";''+A');
end.

The PIBAS prog is as follows:

A="?'A="+'"'+"'+A+'"+'"'+";'+A";
?'A="'+A+'";'+A
Re: How can this get WA?
Posted by Vladimir Yakovlev (USU) 18 Aug 2004 14:20
• Use write instead of writeln. CR/LF characters are not allowed in PIBAS program.
• And your program is not introspective, your output is A="?'A="'+A+'";'+A";?'A="'+A+'";'+A
Thx.AC now.
Posted by Maigo Akisame (maigoakisame@yahoo.com.cn) 18 Aug 2004 19:35